Skip to content

Commit

Permalink
Fix/slack notification bar (#218)
Browse files Browse the repository at this point in the history
* change slack color to red incase of failure

* Update slack-notification.yml
  • Loading branch information
sayaliM0412 authored May 28, 2024
1 parent 5771fdf commit c649171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/slack-notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c649171

Please sign in to comment.