Skip to content

Commit e687546

Browse files
committed
[actions] Trigger metadata zip generation only if a .json file changed
1 parent 55e44db commit e687546

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/test_and_deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
id: filter
123123
with:
124124
filters: |
125-
validate-json:
125+
metadata-changed:
126126
- '**/*.json'
127127
128128
# Setup Python
@@ -133,13 +133,14 @@ jobs:
133133

134134
# Run JSON Validation script
135135
- name: Validate JSON
136-
if: steps.filter.outputs.validate-json == 'true'
136+
if: steps.filter.outputs.metadata-changed == 'true'
137137
run: bash travis_validate_json.sh
138138

139139
# Build installMetadata.zip
140140
# Only run this if the JSON validation was successful, in case there is an error in one of the JSON files
141141
# NOTE: This PAT will expire periodically, but Github should send a reminder to renew it.
142142
- name: Trigger installMetadata.zip build in python-patcher-metadata repo
143+
if: steps.filter.outputs.metadata-changed == 'true'
143144
uses: benc-uk/workflow-dispatch@v1
144145
with:
145146
workflow: build.yml

0 commit comments

Comments
 (0)