2021-01-29 19:03:47 +11:00
|
|
|
name: topo auto updater
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- website/data/library_services_information.csv
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- "master"
|
|
|
|
paths:
|
|
|
|
- website/data/library_services_information.csv
|
|
|
|
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: |
|
|
|
|
automated
|
|
|
|
data
|
2021-01-29 19:37:20 +11:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2021-01-29 19:03:47 +11:00
|
|
|
- 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 into topo
|