Skip to content

Workflow on PR labeled action always fails if there is already OK workflow for the same commit #25568

Answered by BrightRan
aindlq asked this question in Actions
Discussion options

You must be logged in to vote

@aindlq ,

The workflow run triggered by PR labeled to be failed is not caused by the previous completed workflow run, the root cause is an incorrect syntax to get the label name on the if condition.
The correct syntax should be:

if: github.event.action != 'labeled' || github.event.label.name == 'build_image'

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants