Skip to content

Commit 2523f99

Browse files
committed
chore: iterating on contributors generation
1 parent 1c1b572 commit 2523f99

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

.github/workflows/generate-contributors.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
name: "Generate contributors"
22

33
on:
4-
schedule:
5-
- cron: "0 0 1 * *"
4+
workflow_dispatch:
65

76
env:
87
PRIMARY_NODE_VERSION: 12
@@ -37,13 +36,10 @@ jobs:
3736
- name: Generate contributors
3837
run: yarn generate:contributors
3938

40-
- name: Commit files
41-
run: |
42-
git config --local user.email "actions@github.com"
43-
git config --local user.name "Github Actions"
44-
git commit -am "chore: update contributors [bot]"
45-
46-
- name: Push changes
47-
uses: ad-m/github-push-action@master
39+
- name: Create Pull Request
40+
uses: peter-evans/create-pull-request@v3
4841
with:
49-
github_token: ${{ secrets.GITHUB_TOKEN }}
42+
token: ${{ secrets.GITHUB_TOKEN }}
43+
commit-message: "chore: update contributors"
44+
title: "chore: update contributors"
45+
branch: auto-update-contributors

0 commit comments

Comments
 (0)