1111 upgrade :
1212 name : Upgrade
1313 runs-on : ubuntu-latest
14- outputs :
15- patch_created : ${{ steps.create_patch.outputs.patch_created }}
1614 steps :
1715 - name : Checkout
1816 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
19- with :
20- ref : main
2117 - name : Setup Node.js
2218 uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
2319 with :
@@ -26,63 +22,17 @@ jobs:
2622 run : yarn install --check-files --frozen-lockfile
2723 - name : Upgrade dependencies
2824 run : npx projen upgrade
29- - name : Find mutations
30- id : create_patch
31- run : |-
25+ - name : Set git identity & add files to commit
26+ run : |
27+ git config --local user.email [email protected] 28+ git config --local user.name svc-apix-bot
3229 git add .
33- git diff --staged --patch --exit-code > .repo.patch || echo "patch_created=true" >> "${GITHUB_OUTPUT}"
34- - name : Upload patch
35- if : steps.create_patch.outputs.patch_created
36- uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
37- with :
38- name : .repo.patch
39- path : .repo.patch
40- pr :
41- name : Create Pull Request
42- needs : upgrade
43- runs-on : ubuntu-latest
44- if : ${{ needs.upgrade.outputs.patch_created }}
45- steps :
46- - name : Checkout
47- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
48- with :
49- ref : main
50- - name : Download patch
51- uses : actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
52- with :
53- name : .repo.patch
54- path : ${{ runner.temp }}
55- - name : Apply patch
56- run : ' [ -s ${{ runner.temp }}/.repo.patch ] && git apply ${{ runner.temp }}/.repo.patch || echo "Empty patch. Skipping."'
57- - name : Set git identity
58- run : |-
59- git config user.name "github-actions"
60- git config user.email "[email protected] " 6130 - name : Create Pull Request
62- id : create-pr
6331 uses : peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e
6432 with :
65- token : ${{ secrets.TOKEN_TO_OPEN_PR }}
66- commit-message : |-
67- chore(deps): upgrade dependencies
68-
69- Upgrades project dependencies. See details in [workflow run].
70-
71- [Workflow Run]: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
72-
73- ------
74-
75- *Automatically created by projen via the "upgrade-main" workflow*
76- title : " chore(deps): upgrade dependencies"
77- body : |-
78- Upgrades project dependencies. See details in [workflow run].
79-
80- [Workflow Run]: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
81-
82- ------
83-
84- *Automatically created by projen via the "upgrade-main" workflow*
85- author :
github-actions <[email protected] > 86- committer :
github-actions <[email protected] > 87- signoff : true
88-
33+ token : ${{ secrets.APIX_BOT_PAT }}
34+ title : " chore: Upgrade dependencies"
35+ commit-message : " Upgrade dependencies"
36+ delete-branch : true
37+ branch : upgrade-dependencies
38+ body : " Upgrades project dependencies. See details in [workflow run](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})"
0 commit comments