Skip to content

Commit 8dfecc6

Browse files
Update contributors.json on a monthly basis (#44)
* Update contributors.json on a monthly basis * temp * yup * [bot] Update contributors.json (#45) Co-authored-by: MichaelTamaki <MichaelTamaki@users.noreply.github.com> * Disable push testing * update branch name --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 90a0e9a commit 8dfecc6

3 files changed

Lines changed: 187 additions & 287 deletions

File tree

.github/workflows/contributors.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: Credit the contributors
22

33
on:
4-
push: {}
54
workflow_dispatch: {}
5+
schedule:
6+
- cron: "0 0 1 * *"
67

78
env:
89
ORGANIZATION_NAME: "CodeWithAloha"
@@ -42,10 +43,15 @@ jobs:
4243
echo "}}" >> contributors.json
4344
4445
cat contributors.json
45-
- name: Commit the contributors
46-
run: |
47-
git config --global user.name 'github-actions[bot]'
48-
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
49-
git add contributors.json
50-
git commit -m "Update contributors.json"
51-
git push
46+
- name: Use Node.js
47+
uses: actions/setup-node@v3
48+
with:
49+
node-version-file: ".nvmrc"
50+
- run: npm ci
51+
- run: npm run lint
52+
- name: Create Pull Request
53+
uses: peter-evans/create-pull-request@v5
54+
with:
55+
commit-message: "[bot] Update contributors.json"
56+
title: "[bot] Update contributors.json"
57+
branch: "update-contributors-json-bot"

.prettierignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
22

3-
# Github actions generated files
4-
contributors.json
5-
63
# dependencies
74
/node_modules
85
/.pnp

0 commit comments

Comments
 (0)