update workflow actions

This commit is contained in:
Hugh Rundle 2021-01-29 19:03:47 +11:00
parent ff19d5b4dd
commit 13114a4fee
3 changed files with 34 additions and 12 deletions

View file

@ -1,12 +0,0 @@
name: Check PR ok to automerge
on: pull_request
jobs:
perform-check:
runs-on: ubuntu-latest
steps:
- name: Check PR can be automerged
uses: hughrun/can-pr-be-automerged-action@v1.6
with:
required-user: 'hughrun'

View file

@ -5,6 +5,7 @@ on:
- master - master
paths: paths:
- website/data/library_services_information.csv - website/data/library_services_information.csv
workflow_dispatch:
jobs: jobs:
mergeData: mergeData:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View file

@ -0,0 +1,33 @@
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
- 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