public_library_map/.github/workflows/add-contributors.yml
Hugh Rundle 459f0b22d0 add default username to Actions
- avoids adding GitHub usernames instead of names when adding automated commits e.g. updating the name file.
Also cleaned up contributors.txt
2021-02-06 12:12:15 +11:00

24 lines
508 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
commit_author: Library Map Bot <librarymap@hugh.run>