Skip to content

Commit

Permalink
Update contributors.json on a monthly basis
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTamaki authored Nov 14, 2023
1 parent 2e395a9 commit 11bd7f0
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/contributors.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Credit the contributors

on:
push: {}
workflow_dispatch: {}
schedule:
- cron: '0 0 1 * *'

env:
ORGANIZATION_NAME: "CodeWithAloha"
Expand Down Expand Up @@ -42,10 +43,14 @@ jobs:
echo "}}" >> contributors.json
cat contributors.json
- name: Commit the contributors
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add contributors.json
git commit -m "Update contributors.json"
git push
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
- run: npm ci
- run: npm run lint
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
commit-message: "[bot] Update contributors.json"
title: "[bot] Update contributors.json"

0 comments on commit 11bd7f0

Please sign in to comment.