public_library_map/.github/workflows/update-topo-on-info-pr.yml
Hugh Rundle 7a2b83a97c rationalise workflows
- csv-to-topo updater now only works for PRs : csv shouldn't be directly updated in a push to master
- csv-to-topo can now be manually triggered if needed
- clearer formatting for actions
2021-01-29 21:10:39 +11:00

33 lines
675 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
with:
ref: ${{ github.head_ref }}
- 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