File tree Expand file tree Collapse file tree 1 file changed +0
-38
lines changed Expand file tree Collapse file tree 1 file changed +0
-38
lines changed Original file line number Diff line number Diff line change 44 workflow_dispatch : {}
55 schedule :
66 - cron : 0 9 * * 2 # every Tuesday at 9am
7- permissions :
8- contents : write
9- pull-requests : write
107jobs :
118 upgrade :
129 name : Upgrade
1310 runs-on : ubuntu-latest
14- outputs :
15- patch_created : ${{ steps.create_patch.outputs.patch_created }}
1611 steps :
1712 - name : Checkout
1813 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
2419 run : yarn install --check-files --frozen-lockfile
2520 - name : Upgrade dependencies
2621 run : npx projen upgrade
27- - name : Find mutations
28- id : create_patch
29- run : |-
30- git add .
31- git diff --staged --patch --exit-code > .repo.patch || echo "patch_created=true" >> "${GITHUB_OUTPUT}"
32- - name : Upload patch
33- if : steps.create_patch.outputs.patch_created
34- uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
35- with :
36- name : .repo.patch
37- path : .repo.patch
38- pr :
39- name : Create Pull Request
40- needs : upgrade
41- runs-on : ubuntu-latest
42- if : ${{ needs.upgrade.outputs.patch_created }}
43- steps :
44- - name : Checkout
45- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
46- - name : Download patch
47- uses : actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
48- with :
49- name : .repo.patch
50- path : ${{ runner.temp }}
51- - name : Apply patch
52- run : ' [ -s ${{ runner.temp }}/.repo.patch ] && git apply ${{ runner.temp }}/.repo.patch || echo "Empty patch. Skipping."'
53- - name : Set git identity
54- run : |-
55- git config user.name "svc-apix-bot"
56- git config user.email "[email protected] " 5722 - name : Create Pull Request
5823 uses : peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e
5924 with :
6328 delete-branch : true
6429 branch : upgrade-dependencies
6530 body : " Upgrades project dependencies. See details in [workflow run](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})"
66- author :
svc-apix-bot <[email protected] > 67- committer :
svc-apix-bot <[email protected] > 68- signoff : true
You can’t perform that action at this time.
0 commit comments