Dataset aktualisiert #55
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow updates some specific metadata fields for a dataset in CKAN. | |
name: Datenregister Dataset Update | |
on: | |
push: | |
paths: | |
- 'data/**' | |
env: | |
CKAN_TOKEN: ${{secrets.CKAN_TOKEN}} | |
jobs: | |
dataset_update: | |
runs-on: ubuntu-latest | |
name: Dataset Update | |
steps: | |
- name: Do not run on template repository | |
shell: bash | |
run: | | |
curl https://api.github.com/repos/$GITHUB_REPOSITORY \ | |
| jq --exit-status '.is_template == false' | |
# check out this repo | |
- uses: actions/checkout@v2 | |
- name: Install Requirements | |
run: | | |
pip install -r requirements.txt | |
- name: Run Updater | |
run: | | |
make dataset-update |