From c6491712ac46b59b8fc47ca032c6dbfb7a26e804 Mon Sep 17 00:00:00 2001 From: Sayali Mohadikar <76010603+sayaliM0412@users.noreply.github.com> Date: Tue, 28 May 2024 10:40:03 -0500 Subject: [PATCH] Fix/slack notification bar (#218) * change slack color to red incase of failure * Update slack-notification.yml --- .github/workflows/slack-notification.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/slack-notification.yml b/.github/workflows/slack-notification.yml index a0b58e6b..f941b706 100644 --- a/.github/workflows/slack-notification.yml +++ b/.github/workflows/slack-notification.yml @@ -11,7 +11,7 @@ jobs: - name: Notify Slack on Build Failure uses: rtCamp/action-slack-notify@v2 env: - SLACK_COLOR: ${{ github.event.action == 'test-failure' }} + SLACK_COLOR: ${{ github.event.action == 'test-failure' && 'danger' || 'good' }} SLACK_MESSAGE: "View details on GitHub Actions: ${{ github.event.client_payload.server_url }}/${{ github.event.client_payload.repository }}/actions/runs/${{ github.event.client_payload.run_id }} <@U042HRTL4DT>. Triggered by repository: ${{ github.event.client_payload.repository }} and job: ${{ github.job }}" SLACK_TITLE: "❌ ${{ github.event.client_payload.repository }} ❌ Tests failed on branch ${{ github.event.client_payload.branch }} for commit ${{ github.event.client_payload.sha }} in repository ${{ github.event.client_payload.repository }}" SLACK_USERNAME: liquibot