Skip to content

Commit

Permalink
add slack notification
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenruizdegauna committed Feb 6, 2025
1 parent fc29fba commit 1044ba2
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/recover_s3_repository_periodic_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,29 @@ jobs:
- name: Delete .original
run: |
aws s3 rm --recursive "${{ env.TEST_FOLDER_ABS_PATH }}.original"
- name: Send Slack notification to OHAI
if: ${{ failure() }}
id: slack
uses: slackapi/[email protected]
with:
payload: |
{
"text": ":rotating_light: Dry-Run Recover S3 Repository failed :warning: :warning: :warning: @hero check <${{ env.GITHUB_JOB_URL }}> :rotating_light:"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.OHAI_PRIVATE_SLACK_WEBHOOK }}
GITHUB_JOB_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}

- name: Send Slack notification to AC
if: ${{ failure() }}
id: slack
uses: slackapi/[email protected]
with:
payload: |
{
"text": ":rotating_light: Dry-Run Recover S3 Repository failed :warning: :warning: :warning: @hero check <${{ env.GITHUB_JOB_URL }}> :rotating_light:"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SUPER_SECRET_AGENT_SLACK_WEBHOOK }}
GITHUB_JOB_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}

0 comments on commit 1044ba2

Please sign in to comment.