Skip to content

Commit

Permalink
Fix notifications to slack
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodbare committed Feb 19, 2024
1 parent f115b53 commit d16d98c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/run-e2e-nua-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,15 @@ jobs:
with:
report_paths: 'nua.xml'

- name: Discord notification
uses: cl8dep/[email protected]
- name: Slack notification
id: slack
uses: slackapi/[email protected]
if: ${{ failure() && github.ref_name == 'main' }}
with:
webhook: ${{ secrets.NUA_E2E_SLACK_WEBHOOK }}
message: |
⚠️ tests failed @NUA
<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}>
username: 'NUA E2E'
payload: |
{
"text": "⚠️ tests failed\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.NUA_E2E_SLACK_WEBHOOK }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
17 changes: 10 additions & 7 deletions .github/workflows/run-e2e-nua-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,15 @@ jobs:
with:
report_paths: 'nua.xml'

- name: Discord notification
uses: cl8dep/[email protected]
- name: Slack notification
id: slack
uses: slackapi/[email protected]
if: ${{ failure() && github.ref_name == 'main' }}
with:
webhook: ${{ secrets.NUA_E2E_SLACK_WEBHOOK }}
message: |
⚠️ tests failed @NUA
<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}>
username: 'NUA E2E'
payload: |
{
"text": "⚠️ tests failed\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.NUA_E2E_SLACK_WEBHOOK }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK

0 comments on commit d16d98c

Please sign in to comment.