Skip to content

Commit dd39b3e

Browse files
committed
added job failure expression to workflow
1 parent a012d82 commit dd39b3e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/slack-notify.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Slack Notify on Failure
15-
if: ${{ failure() || success() }}
15+
if: ${{ success() }}
1616
id: slack
1717
uses: slackapi/slack-github-action@v1.24.0
1818
with:
19+
channel-id: 'cicd'
1920
slack-message: "Github CI result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
2021
env:
21-
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
22-
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
22+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
23+
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
24+
# SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK

0 commit comments

Comments
 (0)