Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Pilot Lvl 1
Message 1 of 12

Status of workflows with no running jobs

The status of a workflow where no jobs had a matching condition (jobs.<job_id>.if) used to get a "skipped" status with a grey icon on the actions lists.

 

But some time within the last day that changed to a failed state with a red icon and a mail informing about the failed workflow.

 

The previous behaviour was much nicer. An error?

 

Untitled.png

 

11 Replies
Copilot Lvl 3
Message 2 of 12

Re: Status of workflows with no running jobs

Having the same issue. Also, now this is generating notifications each time a job doesn't have a mtaching condition.

Copilot Lvl 3
Message 3 of 12

Re: Status of workflows with no running jobs

Same here. We have a Workflow running on the `deployment_status` event and we only care about the `success` state. This is causing quite a bit of noise as `pending` deployments are all showing as failures just because the `if` condition in the job doesn't pass.

GitHub Partner
Message 4 of 12

Re: Status of workflows with no running jobs

We have reported the feedback to the appropriate engineering team for further investigation and evaluation. If have any progress, we will notify you in time.

Pilot Lvl 1
Message 5 of 12

Re: Status of workflows with no running jobs

Thank you, @BrightRan.

 

I just checked and the problem still exists.

 

Feel free to contact me if you need more info or examples.

Copilot Lvl 3
Message 6 of 12

Re: Status of workflows with no running jobs

Any news after the general availability?

Copilot Lvl 2
Message 7 of 12

Re: Status of workflows with no running jobs

Do we have any idea if this is an intentional change, or a bug? I've changed my workflow so that all the steps in the job have the if statement. This way I have a job with zero steps, rather than a workflow with zero jobs, and it achieves basically the same thing, but the workflow takes a couple of seconds longer.

Copilot Lvl 3
Message 8 of 12

Re: Status of workflows with no running jobs

Is there any news on this ? This is so annoying right now, having to use "no-op" jobs or using steps-level if...

Copilot Lvl 3
Message 9 of 12

Re: Status of workflows with no running jobs

I wish this were fixed as well, but until it is, how do I create a no-op job?

Copilot Lvl 3
Message 10 of 12

Re: Status of workflows with no running jobs

We just "solved" by adding the condtional at each step in the job https://github.com/transcom/mymove/blob/master/.github/workflows/go-auto-approve.yml