We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59c8b86 commit 0aa923dCopy full SHA for 0aa923d
.github/workflows/slack-notify.yml
@@ -3,17 +3,20 @@ name: Slack Notification of CI Status
3
on:
4
push:
5
branches: ["feature/raisa-cicd"]
6
+ pull_request:
7
+ branches: ["feature/raisa-cicd"]
8
9
jobs:
10
slackNotification:
11
name: Slack CI status message
12
runs-on: ubuntu-latest
13
+ if: 'faiure'
14
steps:
15
- name: Slack Notify on Failure
16
id: slack
17
uses: slackapi/slack-github-action@v1.24.0
18
with:
- status: ${{ job.status }}
19
+ slack-message: "Github CI result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
20
env:
21
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
22
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
0 commit comments