update workflows

- PR are now only tagged
- topo merge is done on push to master, not as part of PR
- this should resolve problems with arbitrary forked branches
This commit is contained in:
Hugh Rundle 2021-02-05 21:20:02 +11:00
parent 2ac77f3959
commit 2c3cd34cd3
2 changed files with 30 additions and 11 deletions

22
.github/workflows/tag-prs.yml vendored Normal file
View file

@ -0,0 +1,22 @@
name: tag PRs
on:
pull_request:
paths:
- 'website/data/*'
workflow_dispatch:
jobs:
auto-topo-updater:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: christianvuerings/add-labels@v1
with:
labels: |
data
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View file

@ -1,9 +1,11 @@
name: topo auto updater (PR)
name: topo update (push)
on:
pull_request:
push:
branches:
- 'master'
paths:
- 'website/data/library_services_information.csv'
- 'website/data/library_services_information.csv'
workflow_dispatch:
@ -13,14 +15,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: christianvuerings/add-labels@v1
with:
labels: |
auto update
data
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.head_ref }}
fetch-depth: 0
- name: Merge CSV to TopoJSON
run: |