diff --git a/.github/workflows/add-contributors.yml b/.github/workflows/add-contributors.yml index a991334..fb25eb3 100644 --- a/.github/workflows/add-contributors.yml +++ b/.github/workflows/add-contributors.yml @@ -3,9 +3,10 @@ name: Add contributors on: push: branches: - - "master" - - "main" - + - master + - main + paths: + - '!website/data/library_services_information.csv' jobs: update-contributors: runs-on: ubuntu-latest diff --git a/.github/workflows/minify-map-json.yml b/.github/workflows/minify-map-json.yml index ede0ea1..e446576 100644 --- a/.github/workflows/minify-map-json.yml +++ b/.github/workflows/minify-map-json.yml @@ -3,6 +3,7 @@ on: push: branches: - master + - main paths: - 'boundaries.geo.json' diff --git a/.github/workflows/update-topo-on-push.yml b/.github/workflows/update-topo-on-push.yml index d2fc1e3..5cbf22a 100644 --- a/.github/workflows/update-topo-on-push.yml +++ b/.github/workflows/update-topo-on-push.yml @@ -3,7 +3,8 @@ name: topo update (push) on: push: branches: - - 'master' + - master + - main paths: - 'website/data/library_services_information.csv' @@ -23,6 +24,12 @@ jobs: run: | python3 ./.github/scripts/merge_csv_to_topojson.py + - name: Update contributors + run: | + npm install cheerio + npm install pretty + node ./.github/scripts/contributors.js + - uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: merge csv data to topo