Skip to content

Commit 0bf07f4

Browse files
committed
Use create pull request action more
1 parent 91dab5f commit 0bf07f4

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

.github/workflows/update-contributors.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,21 @@ jobs:
3232
env:
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3434

35-
- name: Stage changes
36-
if: steps.check-changes.outputs.changes == 'true'
37-
run: |
38-
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
39-
git config --local user.name "github-actions[bot]"
40-
git add README.md
41-
git commit -m "docs: update contributors list [skip ci]"
42-
4335
- name: Create Pull Request
4436
if: steps.check-changes.outputs.changes == 'true'
4537
uses: peter-evans/create-pull-request@v5
4638
with:
4739
token: ${{ secrets.GITHUB_TOKEN }}
40+
add-paths: |
41+
README.md
42+
commit-message: "docs: update contributors list [skip ci]"
43+
committer: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
44+
branch: update-contributors
45+
branch-suffix: timestamp
46+
delete-branch: true
4847
title: "Update contributors list"
4948
body: |
5049
Automated update of contributors list in README.md
5150
5251
This PR was created automatically by a GitHub Action workflow.
53-
branch: update-contributors
54-
branch-suffix: timestamp
55-
delete-branch: true
5652
base: main

0 commit comments

Comments
 (0)