Skip to content

Commit

Permalink
create filter_file step id to reference varible
Browse files Browse the repository at this point in the history
  • Loading branch information
afwillia committed Nov 1, 2023
1 parent a2f2521 commit b41183b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/validate-dcc-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

2 changes: 1 addition & 1 deletion test/smoke_test_dca_config.json
Original file line number Diff line number Diff line change
@@ -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"}

0 comments on commit b41183b

Please sign in to comment.