Skip to content

Commit 4ae3368

Browse files
committed
added job failure expression to workflow
1 parent ca134cd commit 4ae3368

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/slack-notify.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Slack Notify on Failure
15-
if: ${{ success() }}
15+
if: ${{ failure() }}
1616
id: slack
1717
uses: slackapi/slack-github-action@v1.24.0
1818
with:
1919
channel-id: 'C067F896WG5'
20-
slack-message: "Github CI result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
20+
slack-message: "Github CI Result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
2121
env:
2222
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
2323
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

0 commit comments

Comments
 (0)