Step conditional on status transition from failure() to success()? #25050
-
We send a notification on Slack when a job fails. This is detected using an if: failure() conditional check. Now I’d also like to send a Slack notification when the job transitions from failure() to success() but not on every successful build. Is this kind of state transition possible to detect? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi britzl, Sorry to tell you that there is not a event to track job status transition. So your requirement could not be reached currently. |
Beta Was this translation helpful? Give feedback.
-
Any plans for such a feature? This is the only annoyance we have ran into while transitioning away from Travis. A verified/endorsed action for Slack notifications would be nice as well. |
Beta Was this translation helpful? Give feedback.
-
Hi kornholi, If you have feedback or feature requests for GitHub Actions, share those in the Feedback form for GitHub Actions. |
Beta Was this translation helpful? Give feedback.
Hi britzl,
Sorry to tell you that there is not a event to track job status transition. So your requirement could not be reached currently.