File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 48
48
# instead of provided ones
49
49
persist-credentials : false
50
50
51
- - name : Clear legacy snapshots
52
- run : |
53
- rm -rf ${{ inputs.snapshots_directory }}/*
54
-
55
51
- name : Download new snapshots
56
52
uses : actions/download-artifact@v4
57
53
with :
61
57
- name : Check if update is needed
62
58
id : check-changes
63
59
run : |
60
+ git status
64
61
if [ -n "$(git status --porcelain)" ]; then
65
62
echo "Changes detected"
66
63
echo "changes_detected=true" >> "$GITHUB_OUTPUT"
Original file line number Diff line number Diff line change @@ -179,6 +179,11 @@ jobs:
179
179
./${{ needs.call_get_app_metadata.outputs.pytest_directory }}/setup_script.sh
180
180
fi
181
181
182
+ - name : Clear legacy snapshots
183
+ if : ${{ inputs.regenerate_snapshots == true }}
184
+ run : |
185
+ rm -rf ${{ needs.call_get_app_metadata.outputs.pytest_directory }}/snapshots
186
+
182
187
- name : Run test
183
188
env :
184
189
CTEST_OUTPUT_ON_FAILURE : 1
You can’t perform that action at this time.
0 commit comments