File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -31,11 +31,17 @@ jobs:
31
31
32
32
echo "CHANGED is $CHANGED"
33
33
34
- - name : Commit changes
35
- if : ${{ env.CHANGED == 'true' }}
36
- run : |
37
- git config --local user.email "github-actions[bot]@users.noreply.github.com"
38
- git config --local user.name "github-actions[bot]"
39
- git add AUTHORS.md
40
- git commit -m "docs: update AUTHORS.md"
41
- git push
34
+ - name : Create and push a PR
35
+ if : env.CHANGED == 'true'
36
+ uses : peter-evans/create-pull-request@v3
37
+ with :
38
+ token : ${{ secrets.GITHUB_TOKEN }}
39
+ commit-message : " chore: update AUTHORS.md"
40
+ title : " chore: update AUTHORS.md"
41
+ body : " This PR updates the AUTHORS.md file."
42
+ branch : feat/update-authors-md
43
+ base : main
44
+
45
+ - name : Merge PR with gh
46
+ if : env.CHANGED == 'true'
47
+ run : gh pr merge --squash --auto
You can’t perform that action at this time.
0 commit comments