public_library_map/.github/workflows/update-topo-on-info-pr.yml
Hugh Rundle a7ab8d399a Update update-topo-on-info-pr.yml
remove `head_ref` reference from actions/checkout to resolve error (see https://github.com/actions/checkout/issues/275)
2021-02-02 18:10:48 +11:00

32 lines
628 B
YAML

name: topo auto updater (PR)
on:
pull_request:
paths:
- 'website/data/library_services_information.csv'
workflow_dispatch:
jobs:
auto-topo-updater:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: christianvuerings/add-labels@v1
with:
labels: |
auto update
data
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Merge CSV to TopoJSON
run: |
python3 ./.github/scripts/merge_csv_to_topojson.py
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: merge csv data to topo