Skip to content

Commit a51825b

Browse files
bschwedlerianpittwood
authored andcommitted
Guard release job against non-dispatch triggers
GitHub creates a check run for modified workflow files on push even when the file only triggers on workflow_dispatch. The run fails because inputs.version is undefined in a push context.
1 parent d6dc182 commit a51825b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010

1111
jobs:
1212
release:
13+
if: github.event_name == 'workflow_dispatch'
1314
timeout-minutes: 10
1415
permissions:
1516
contents: write

0 commit comments

Comments
 (0)