Skip to content

Commit

Permalink
added job failure expression to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fraisai committed Nov 28, 2023
1 parent 4ae3368 commit 411e91e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/slack-notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Slack Notification of CI Status

on:
push:
branches: ["feature/raisa-cicd"]
branches: ["main"]
pull_request:
branches: ["feature/raisa-cicd"]
branches: ["main"]

jobs:
slackNotification:
Expand All @@ -17,7 +17,7 @@ jobs:
uses: slackapi/[email protected]
with:
channel-id: 'C067F896WG5'
slack-message: "Github CI Result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
slack-message: "Github CI Result: ${{ job.status }}\nGithub PR/Commit URL: ${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
Expand Down

0 comments on commit 411e91e

Please sign in to comment.