File tree Expand file tree Collapse file tree 1 file changed +17
-8
lines changed
Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -49,12 +49,21 @@ jobs:
4949 env :
5050 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5151
52- - name : Commit CHANGELOG.md changes
53- run : |
54- git add CHANGELOG.md
55- git commit --no-allow-empty -m "chore: update CHANGELOG.md" CHANGELOG.md || true
56- - name : Push updates
57- uses : ad-m/github-push-action@v0.6.0
52+ - name : Create Pull Request
53+ uses : peter-evans/create-pull-request@v4
5854 with :
59- github_token : ${{ secrets.GITHUB_TOKEN }}
60- branch : main
55+ commit-message : Update changelog
56+ branch : ci/update-changelog
57+ title : ' chore: update CHANGELOG.md'
58+ add-paths : |
59+ CHANGELOG.md
60+ body : |
61+ - Update `CHANGELOG.md`
62+
63+ - name : Merge PR
64+ env :
65+ PULL_REQUEST_NUMBER : ${{steps.cpr.outputs.pull-request-number}}
66+ # NOTE: we don't use a PAT so to not trigger further automation
67+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
68+ run : |
69+ gh pr merge $PULL_REQUEST_NUMBER --squash --delete-branch
You can’t perform that action at this time.
0 commit comments