-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.04 KB
/
renovate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Renovate
on:
pull_request:
jobs:
swift-package-resolve:
runs-on: macos-14
if: startswith(github.head_ref, 'renovate')
env:
DEVELOPER_DIR: /Applications/Xcode_16.app/Contents/Developer
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Swift Package resolve
run: swift package resolve
- name: Git config
run: |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- uses: Cyberbeni/install-swift-tool@v2
with:
url: https://github.com/tuist/xcbeautify
version: '*'
- name: Run test
run: |
set -o pipefail
swift test 2>&1 | xcbeautify
- name: Commit & push
env:
HEAD_REF: ${{ github.head_ref }}
run: |
git add Package.resolved
if git commit -m "Resolve Swift Package [ci skip]"; then
git push origin "HEAD:${HEAD_REF}"
fi