Skip to content

Commit b9d3596

Browse files
authored
Merge pull request #1632 from RooVetGit/update_contributors_pr
Open a PR to update contributors
2 parents 954eb31 + d9ffda5 commit b9d3596

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

.github/workflows/update-contributors.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,18 @@ jobs:
3838
echo "No changes to README.md"
3939
fi
4040
41-
- name: Commit and push changes
41+
- name: Create Pull Request
4242
if: steps.check-changes.outputs.changes == 'true'
43-
run: |
44-
git config --global user.name 'github-actions[bot]'
45-
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
46-
git add README.md
47-
git commit -m "docs: update contributors list [skip ci]"
48-
git push
43+
uses: peter-evans/create-pull-request@v5
44+
with:
45+
token: ${{ secrets.GITHUB_TOKEN }}
46+
commit-message: "docs: update contributors list"
47+
title: "Update contributors list"
48+
body: |
49+
Automated update of contributors list in README.md
50+
51+
This PR was created automatically by a GitHub Action workflow.
52+
branch: update-contributors
53+
branch-suffix: timestamp
54+
delete-branch: true
55+
base: main

0 commit comments

Comments
 (0)