diff --git a/.github/workflows/validate-dcc-config.yml b/.github/workflows/validate-dcc-config.yml index d56804c..f22cab0 100644 --- a/.github/workflows/validate-dcc-config.yml +++ b/.github/workflows/validate-dcc-config.yml @@ -20,12 +20,14 @@ jobs: steps: - id: files uses: masesgroup/retrieve-changed-files@v3 - - run: | - echo "configs=$(echo ${{ steps.files.outputs.added_modified }} | tr ' ' '\n' | grep dca_config\\.json)" >> $GITHUB_OUTPUT + - id: filter_files + run: | + echo "configs=$(echo ${{ steps.files.outputs.added_modified }} | tr ' ' '\n' | grep dca_config\\.json)" >> "$GITHUB_OUTPUT" + echo ${configs} - uses: actions/checkout@v4 - name: Validate JSON uses: docker://orrosenblatt/validate-json-action:latest env: INPUT_SCHEMA: schemas/dca_config.schema.json - INPUT_JSONS: ${{ steps.files.outputs.configs }} + INPUT_JSONS: ${{ steps.filter_files.outputs.configs }} diff --git a/test/smoke_test_dca_config.json b/test/smoke_test_dca_config.json index f6aba2c..efd4a5a 100644 --- a/test/smoke_test_dca_config.json +++ b/test/smoke_test_dca_config.json @@ -1 +1 @@ -{"a":"b","project_name":"DCA Smoke Test","synapse_asset_view":"syn52701135","data_model_url":"https://raw.githubusercontent.com/Sage-Bionetworks/data-models/main/example.model.jsonld","template_menu_config_file":"dcc/demo/dca-template-config.json","logo_location":"dcc/demo/Logo_Sage_Logomark.png","logo_link":"https://synapse.org","manifest_output_format":"google_sheet","manifest_use_annotations":false,"validate_restrict_rules":false,"submit_use_schema_labels":true,"submit_table_manipulation":"replace","submit_manifest_record_type":"table_and_file","submit_hide_blanks":false,"use_compliance_dashboard":false,"primary_col":"#2a668d","secondary_col":"#184e71","sidebar_col":"#191919"} +{"b":"b","project_name":"DCA Smoke Test","synapse_asset_view":"syn52701135","data_model_url":"https://raw.githubusercontent.com/Sage-Bionetworks/data-models/main/example.model.jsonld","template_menu_config_file":"dcc/demo/dca-template-config.json","logo_location":"dcc/demo/Logo_Sage_Logomark.png","logo_link":"https://synapse.org","manifest_output_format":"google_sheet","manifest_use_annotations":false,"validate_restrict_rules":false,"submit_use_schema_labels":true,"submit_table_manipulation":"replace","submit_manifest_record_type":"table_and_file","submit_hide_blanks":false,"use_compliance_dashboard":false,"primary_col":"#2a668d","secondary_col":"#184e71","sidebar_col":"#191919"}