From 411e91eaf3b037e83c8b213c708be7bd817f48f5 Mon Sep 17 00:00:00 2001 From: fraisai Date: Mon, 27 Nov 2023 21:50:31 -0500 Subject: [PATCH] added job failure expression to workflow --- .github/workflows/slack-notify.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/slack-notify.yml b/.github/workflows/slack-notify.yml index b0ad879..b771a26 100644 --- a/.github/workflows/slack-notify.yml +++ b/.github/workflows/slack-notify.yml @@ -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: @@ -17,7 +17,7 @@ jobs: uses: slackapi/slack-github-action@v1.24.0 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 }}