Skip to content

Commit 411e91e

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/slack-notify.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Slack Notification of CI Status
22

33
on:
44
push:
5-
branches: ["feature/raisa-cicd"]
5+
branches: ["main"]
66
pull_request:
7-
branches: ["feature/raisa-cicd"]
7+
branches: ["main"]
88

99
jobs:
1010
slackNotification:
@@ -17,7 +17,7 @@ jobs:
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 }}\nGithub PR/Commit URL: ${{ 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)