Skip to content

Commit f871298

Browse files
Allow to skip override-snapshot creation in manual workflow run (#3675)
Co-authored-by: Christoph Stäbler <[email protected]>
1 parent ec4a921 commit f871298

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/validate.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ on:
1515
schedule:
1616
- cron: "0 6 * * *" # Daily at 06:00.
1717
workflow_dispatch: # Manual workflow trigger
18+
inputs:
19+
skip-override-snapshot-gen:
20+
type: boolean
21+
default: false
22+
required: false
23+
description: "Skip override-snapshot creation"
1824

1925
jobs:
2026
generated-files-committed:
@@ -82,7 +88,7 @@ jobs:
8288
run: make generate-catalog
8389

8490
- name: Regenerate override-snapshot
85-
if: github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || ( github.event_name == 'push' && !contains(github.ref_name, 'dependabot/') )
91+
if: ( github.event_name == 'workflow_dispatch' && inputs.skip-override-snapshot-gen == 'false' ) || github.event_name == 'schedule' || ( github.event_name == 'push' && !contains(github.ref_name, 'dependabot/') )
8692
working-directory: ./src/github.com/${{ github.repository }}
8793
run: make generate-override-snapshot
8894

0 commit comments

Comments
 (0)