|
36 | 36 | uses: actions/checkout@v2 |
37 | 37 | with: |
38 | 38 | repository: ror-community/validation-suite |
39 | | - ref: schema-v2 |
40 | 39 | path: validation-suite |
41 | 40 | - name: Get directory name |
42 | 41 | if: "${{ github.event.inputs.directory-name != '' }}" |
|
53 | 52 | cd validation-suite |
54 | 53 | python -m pip install --upgrade pip |
55 | 54 | pip install -r requirements.txt |
56 | | - curl https://raw.githubusercontent.com/ror-community/ror-schema/master/ror_schema.json -o ror_schema.json |
57 | | - curl https://raw.githubusercontent.com/ror-community/ror-schema/master/ror_schema_v2_0.json -o ror_schema_v2_0.json |
| 55 | + curl https://raw.githubusercontent.com/ror-community/ror-schema/refs/heads/master/ror_schema.json -o ror_schema.json |
| 56 | + curl https://raw.githubusercontent.com/ror-community/ror-schema/refs/heads/master/ror_schema_v2_1.json -o ror_schema_v2_1.json |
58 | 57 | ls ../files/ |
59 | 58 | if [[ ${{ github.event.inputs.schema-version }} == 'v1' ]]; then |
60 | 59 | echo "validating v1" |
@@ -85,22 +84,22 @@ jobs: |
85 | 84 | if [[ ${{ github.event.inputs.skip-geonames }} == true ]]; then |
86 | 85 | if [[ ${{ github.event.inputs.with-relationship }} == true ]]; then |
87 | 86 | if [[ -f "../${{ env.WORKING_DIR }}/relationships.csv" ]]; then |
88 | | - python run_validations.py -i ../files -v 2 -s ror_schema_v2_0.json -f ../${{ env.WORKING_DIR }}/relationships.csv -p ../files/ --no-geonames |
| 87 | + python run_validations.py -i ../files -v 2 -s ror_schema_v2_1.json -f ../${{ env.WORKING_DIR }}/relationships.csv -p ../files/ --no-geonames |
89 | 88 | else |
90 | | - python run_validations.py -i ../files -v 2 -s ror_schema_v2_0.json -p ../files/ --no-geonames |
| 89 | + python run_validations.py -i ../files -v 2 -s ror_schema_v2_1.json -p ../files/ --no-geonames |
91 | 90 | fi |
92 | 91 | elif [[ ${{ github.event.inputs.with-relationship }} == false ]]; then |
93 | | - python run_validations.py -i ../files -v 2 -s ror_schema_v2_0.json --no-geonames |
| 92 | + python run_validations.py -i ../files -v 2 -s ror_schema_v2_1.json --no-geonames |
94 | 93 | fi |
95 | 94 | else |
96 | 95 | if [[ ${{ github.event.inputs.with-relationship }} == true ]]; then |
97 | 96 | if [[ -f "../${{ env.WORKING_DIR }}/relationships.csv" ]]; then |
98 | | - python run_validations.py -i ../files -v 2 -s ror_schema_v2_0.json -f ../${{ env.WORKING_DIR }}/relationships.csv -p ../files/ |
| 97 | + python run_validations.py -i ../files -v 2 -s ror_schema_v2_1.json -f ../${{ env.WORKING_DIR }}/relationships.csv -p ../files/ |
99 | 98 | else |
100 | | - python run_validations.py -i ../files -v 2 -s ror_schema_v2_0.json -p ../files/ |
| 99 | + python run_validations.py -i ../files -v 2 -s ror_schema_v2_1.json -p ../files/ |
101 | 100 | fi |
102 | 101 | elif [[ ${{ github.event.inputs.with-relationship }} == false ]]; then |
103 | | - python run_validations.py -i ../files -v 2 -s ror_schema_v2_0.json |
| 102 | + python run_validations.py -i ../files -v 2 -s ror_schema_v2_1.json |
104 | 103 | fi |
105 | 104 | fi |
106 | 105 | fi |
|
0 commit comments