public_library_map/.github/workflows/add-contributors.yml
Hugh Rundle ac2e9022ca add contributors action
adds GitHub Action to update the list of contributors when a new author pushes a change.
2021-01-31 21:22:24 +11:00

23 lines
447 B
YAML

name: Add contributors
on:
push:
branches:
- "master"
- "main"
jobs:
update-contributors:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Update text and html files
run: |
npm install cheerio
npm install pretty
node ./.github/scripts/contributors.js
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: update contributors