You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
TRaSH-Guides/.github/workflows/update_contributors.yml

31 lines
752 B

10 months ago
name: Update contributors
8 months ago
on: [push, pull_request]
10 months ago
jobs:
update_contributors:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
10 months ago
- name: Install Node.js
uses: actions/setup-node@v4
10 months ago
with:
node-version: "20"
10 months ago
- name: Install dependencies
run: npm install axios
- name: Update CONTRIBUTORS.md
run: |
node .github/scripts/update-contributors.js
10 months ago
- name: Commit and push if it's not up to date
run: |
git diff
git config --global user.email "actions@github.com"
git config --global user.name "GitHub Actions"
git commit -am "Update CONTRIBUTORS.md" || exit 0
git push