Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't treat skipped jobs as cancelled #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pilif
Copy link

@pilif pilif commented Mar 19, 2021

if a workflow causes a job to not run (due to a false if condition), don't treat the job (and thus the whole workflow) as cancelled.

In our case, we have a workflow with a conditional step (in order to not attempt to run a deployment on pull requests). Currently, slack-workflow-status would treat the complete workflow as cancelled and post a warning message to slack whenever the condition was false.

I don't think this makes sense: If a step is deliberately skipped, it means it wasn't relevant for the workflow and thus, it should not affect the reporting.

if a workflow causes a job to not run (due to a false `if` condition),
don't treat the job (and thus the whole workflow) as cancelled
@bkimminich
Copy link

👍 This would be a great improvement to an already great plugin! Currently you get a perfectly 🟢 build on GitHub...
image
...show as a rather unnecessary 🟡 notification on Slack...
image
Would be awesome if this could be changed as proposed by @pilif!

@ojab
Copy link
Contributor

ojab commented Jan 27, 2022

What happens when some of the jobs are failed and dependent job is canceled?

@pilif
Copy link
Author

pilif commented Jan 27, 2022

you will get a failed notification for the failed job anyways which will mark the slack notification as partially failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants