Workflow skips step #21427
-
I am literally trying to debug this thing for a month now. I know it is a small and may be rookie problem but I give up. So here it goes like this, I want to check for broken links on my website and if the workflow finds any I want it to create issue. Note that I want it to create issue only if it founds broken link. If the action that is checking for broken links founds any broken links it returns failure/false. so I wrote this condition on: env: jobs:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
HarshalRathore:
The problem is that the If you want the condition to apply to the
|
Beta Was this translation helpful? Give feedback.
The problem is that the
if
is part of thecheck
step itself. The line after theif
starts the next item in the YAML liststeps
. That never matches because at the time when the runner checks if thecheck
step should run, it doesn’t have an outcome yet, and nothing failed unless there’s an error during checkout. 🙂If you want the condition to apply …