Skip to content

Commit a32c769

Browse files
authored
fix: allow action to run in other events
soft fails if not in a workflow-run context
1 parent 0e45eff commit a32c769

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import main from './lib/index.js'
99

1010
// exit early
1111
if (github.context.eventName !== 'workflow_run') {
12-
core.error('action triggered outside of a workflow_run')
13-
process.exit(1)
12+
core.warning('action triggered outside of a workflow_run')
13+
process.exit(0)
1414
}
1515

1616
// parse inputs

0 commit comments

Comments
 (0)