Aanpassing overlastgebieden met extra velden (versie 2.0.0) #2736
Workflow file for this run
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
name: pre-commit validate-schema | |
on: | |
pull_request: | |
push: | |
paths: | |
- datasets/ | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
env: | |
SCHEMA_URL: datasets/ | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch_depth: 0 | |
- name: "Fetch master branch" # So we can diff against it. | |
run: | | |
git fetch origin master | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9.x' | |
- id: changed-datasets | |
# We are only interested in changed and new (not deleted) datasets files. | |
run: echo "::set-output name=DATASET_FILES::$(git diff --name-only --diff-filter=d origin/master.. -- datasets)" | |
shell: bash | |
- run: | | |
echo "Dataset files to be validated:" | |
for ds in ${{ steps.changed-datasets.outputs.DATASET_FILES }} | |
do | |
echo $ds | |
done | |
- uses: pre-commit/[email protected] | |
with: | |
extra_args: validate-schema --files ${{ steps.changed-datasets.outputs.DATASET_FILES }} |