Skip to content

Commit 57e55af

Browse files
committed
chore(ci): Do not override the schema for non-dev validators
1 parent d340ffc commit 57e55af

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/validate_datasets.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,16 @@ jobs:
100100
if: matrix.bids-validator == 'legacy'
101101
shell: bash
102102

103+
- name: Set BIDS_SCHEMA variable for dev version
104+
if: matrix.bids-validator == 'dev'
105+
# When proposing new features, schema changes may be necessary.
106+
# Update this URL to the schema.json from PRs to the spec, when needed.
107+
# If this variable is unset, dev will generally track the latest development
108+
# release of https://jsr.io/@bids/schema
109+
run: echo BIDS_SCHEMA=https://bids-specification.readthedocs.io/en/latest/schema.json >> $GITHUB_ENV
110+
103111
- name: Validate all BIDS datasets using bids-validator
104112
run: |
105113
cat ./run_tests.sh
106114
./run_tests.sh
107115
shell: bash
108-
env:
109-
# When proposing new features, schema changes may be necessary.
110-
# Update this URL to the schema.json from PRs to the spec, when needed.
111-
BIDS_SCHEMA: https://bids-specification.readthedocs.io/en/latest/schema.json

0 commit comments

Comments
 (0)