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,9 +1,11 @@
|
||||||
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'
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
@ -13,15 +15,10 @@ 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: |
|
||||||
python3 ./.github/scripts/merge_csv_to_topojson.py
|
python3 ./.github/scripts/merge_csv_to_topojson.py
|
Loading…
Reference in a new issue