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:
49
49
env :
50
50
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
51
51
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
-
52
+ - name : Create Pull Request
53
+ uses : peter-evans/create-pull-request@v4
58
54
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