diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5dcfccec2..ce9bb2b6c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,7 +44,7 @@ jobs: status: ${{ job.status }} notify_when: 'failure' notification_title: 'CLI build failure' - message_format: '{emoji} *Build* {status_message} in <{repo_url}|{repo}> on <{commit_url}|{commit_sha}>"' + message_format: '{emoji} *Build* {status_message} in <{repo_url}|{repo}> on <{commit_url}|{commit_sha}>' footer: '<{run_url}|View Run>' env: SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} diff --git a/.github/workflows/testLatestPublish.yml b/.github/workflows/testLatestPublish.yml index 49252ade3..3b7daae2b 100644 --- a/.github/workflows/testLatestPublish.yml +++ b/.github/workflows/testLatestPublish.yml @@ -13,15 +13,6 @@ jobs: - name: Sleep For 3 Mins run: sleep 180s shell: bash - - name: Scheduled Test Slack Report - uses: ravsamhq/notify-slack-action@master - with: - status: ${{ job.status }} - notify_when: 'failure' - notification_title: '{workflow} has {status_message}' - message_format: '{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>' - env: - SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }} - name: Use Node.js uses: actions/setup-node@v2 with: @@ -34,3 +25,14 @@ jobs: env: PORTAL_ID: ${{ secrets.ACCEPTANCE_TEST_PORTAL_ID }} PERSONAL_ACCESS_KEY: ${{ secrets.ACCEPTANCE_TEST_PERSONAL_ACCESS_KEY }} + - name: Build Failure Slack Report + uses: ravsamhq/notify-slack-action@v2 + if: ${{ always() && github.ref_name == 'main' }} + with: + status: ${{ job.status }} + notify_when: 'failure' + notification_title: 'CLI latest release failure' + message_format: '{emoji} *Release* {status_message}' + footer: '<{run_url}|View Run> | ' + env: + SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}