Hugh Rundle
301e0e419d
The add-contributors action and the update-topo action both want to check out the current branch and add a commit at the same time, which causes conflicts. This adds contributors as part of the update-topo action and prevents the contributor update action running if `library_services_information.csv` has changed in the original commit.
25 lines
571 B
YAML
25 lines
571 B
YAML
name: Add contributors
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- main
|
|
paths:
|
|
- '!website/data/library_services_information.csv'
|
|
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> |