Skip to content

Workflow is failing if no job can be ran due to condition #25146

Answered by BrightRan
didrocks asked this question in Actions
Discussion options

You must be logged in to vote

Hi @didrocks ,

In the past, if all jobs in a workflow were skipped with the conditions, the workflow will display as “skipped/no status” status with a grey icon. But now, it displays as failed status.

I had reported this issue to the appropriate engineering team, and the team has began to investigate it.
Currently, we don’t have any other ways to skip the jobs. However, as a workaround, you can add a job to always run in the workflow, you do not need to add any usable steps in this job, and just execute a line of script that don’t make sense. At this situation, when all other jobs are skipped with the if condition, the workflow will not be failed status.

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
3 participants