-
Notifications
You must be signed in to change notification settings - Fork 9
Send notifications only on failure #59
Copy link
Copy link
Closed
Description
Enhance the send-notification job to only trigger on a failure in a previous job.
Context:
The send-notification action sends notifications whenever it is invoked. There is a bug in GitHub Actions where the condition if: ${{ failure() }} does not work when a job in a reusable workflow fails. Further, if: ${{ !success() }} will always run if a previous job is skipped (skipped is apparently not success even though the docs say it is). This means we can't cause the notification only to be sent on failure.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type: enhancementA general enhancementA general enhancement