Skip to content

Commit e581ef1

Browse files
authored
merge(#5): chore: remake how new authors are handled (additional PR)
chore: remake how new authors are handled (additional PR)
2 parents 2f7dc7e + 2811f8d commit e581ef1

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/on_merge.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,17 @@ jobs:
3131
3232
echo "CHANGED is $CHANGED"
3333
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

0 commit comments

Comments
 (0)