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:
parent
2ac77f3959
commit
2c3cd34cd3
22
.github/workflows/tag-prs.yml
vendored
Normal file
22
.github/workflows/tag-prs.yml
vendored
Normal 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 }}
|
|
@ -1,7 +1,9 @@
|
||||||
name: topo auto updater (PR)
|
name: topo update (push)
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
push:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
paths:
|
paths:
|
||||||
- 'website/data/library_services_information.csv'
|
- 'website/data/library_services_information.csv'
|
||||||
|
|
||||||
|
@ -13,14 +15,9 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- uses: christianvuerings/add-labels@v1
|
|
||||||
with:
|
with:
|
||||||
labels: |
|
ref: ${{ github.head_ref }}
|
||||||
auto update
|
fetch-depth: 0
|
||||||
data
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Merge CSV to TopoJSON
|
- name: Merge CSV to TopoJSON
|
||||||
run: |
|
run: |
|
Loading…
Reference in a new issue