Skip to content

Commit d9cfe23

Browse files
Merge pull request #124 from LedgerHQ/fbe/fix_disable_legacy_snapshot_cleaning_for_now
Fbe/fix disable legacy snapshot cleaning for now
2 parents e4e4ead + 8ef3990 commit d9cfe23

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/_open_pr_with_new_snapshots.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ jobs:
4848
# instead of provided ones
4949
persist-credentials: false
5050

51-
- name: Clear legacy snapshots
52-
run: |
53-
rm -rf ${{ inputs.snapshots_directory }}/*
54-
5551
- name: Download new snapshots
5652
uses: actions/download-artifact@v4
5753
with:
@@ -61,6 +57,7 @@ jobs:
6157
- name: Check if update is needed
6258
id: check-changes
6359
run: |
60+
git status
6461
if [ -n "$(git status --porcelain)" ]; then
6562
echo "Changes detected"
6663
echo "changes_detected=true" >> "$GITHUB_OUTPUT"

.github/workflows/reusable_ragger_tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,11 @@ jobs:
179179
./${{ needs.call_get_app_metadata.outputs.pytest_directory }}/setup_script.sh
180180
fi
181181
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+
182187
- name: Run test
183188
env:
184189
CTEST_OUTPUT_ON_FAILURE: 1

0 commit comments

Comments
 (0)