Skip to content

Commit

Permalink
fix: allow action to run in other events
Browse files Browse the repository at this point in the history
soft fails if not in a workflow-run context
  • Loading branch information
Ahmad Nassri authored Feb 18, 2021
1 parent 0e45eff commit a32c769
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import main from './lib/index.js'

// exit early
if (github.context.eventName !== 'workflow_run') {
core.error('action triggered outside of a workflow_run')
process.exit(1)
core.warning('action triggered outside of a workflow_run')
process.exit(0)
}

// parse inputs
Expand Down

0 comments on commit a32c769

Please sign in to comment.