We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e0d24f commit 398f362Copy full SHA for 398f362
.github/workflows/update-snapshots.yml
@@ -2,6 +2,12 @@ name: 03 - Update Snapshots
2
3
on:
4
workflow_dispatch:
5
+ inputs:
6
+ delete_snapshots:
7
+ description: 'Delete existing snapshots before update?'
8
+ required: false
9
+ default: false
10
+ type: boolean
11
12
jobs:
13
update-snapshots:
@@ -58,7 +64,8 @@ jobs:
58
64
- name: Build
59
65
run: pnpm -r build
60
66
61
- - name: Purge existing snapshots
67
+ - name: Purge existing snapshots (optional)
68
+ if: inputs.delete_snapshots == true
62
69
run: find packages -name '*.png' -path '*/snapshots/*' | grep -v 'node_modules' | xargs rm # Remove any existing snapshots, except those in node_modules
63
70
71
- name: Display git status (before test-update)
0 commit comments