Skip to content

Commit e530903

Browse files
committed
fix(repo): scope Slack failure notifications to release step outcomes
1 parent 626334d commit e530903

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ jobs:
130130
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
131131

132132
- name: Notify Slack on failure
133-
if: failure()
133+
if: ${{ always() && steps.changesets.outcome == 'failure' }}
134134
uses: slackapi/slack-github-action@v1.24.0
135135
with:
136136
payload: |
@@ -235,7 +235,7 @@ jobs:
235235
await Promise.all(dispatches);
236236
237237
- name: Notify Slack on failure
238-
if: failure()
238+
if: ${{ always() && steps.publish.outcome == 'failure' }}
239239
uses: slackapi/slack-github-action@v1.24.0
240240
with:
241241
payload: |

0 commit comments

Comments
 (0)