Workflow on pull_request labeled action always fails if there is already completed workflow for the same commit.
Failed workflow is displayed in "Actions" tab but is not even accessible, click on the failed workflow (that was triggered by labeled action) always opens completed workflow (that was triggered by open or synchronize action).
Solved! Solved! Go to Solution.
H @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'
@BrightRan thanks, that fixed the problem?
What confused me is that it was not possible to access failed build at all, it always redirected to the successful one.