Skip to content

Commit 1044ba2

Browse files
add slack notification
1 parent fc29fba commit 1044ba2

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/recover_s3_repository_periodic_test.yml

+26
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,29 @@ jobs:
107107
- name: Delete .original
108108
run: |
109109
aws s3 rm --recursive "${{ env.TEST_FOLDER_ABS_PATH }}.original"
110+
111+
- name: Send Slack notification to OHAI
112+
if: ${{ failure() }}
113+
id: slack
114+
uses: slackapi/[email protected]
115+
with:
116+
payload: |
117+
{
118+
"text": ":rotating_light: Dry-Run Recover S3 Repository failed :warning: :warning: :warning: @hero check <${{ env.GITHUB_JOB_URL }}> :rotating_light:"
119+
}
120+
env:
121+
SLACK_WEBHOOK_URL: ${{ secrets.OHAI_PRIVATE_SLACK_WEBHOOK }}
122+
GITHUB_JOB_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
123+
124+
- name: Send Slack notification to AC
125+
if: ${{ failure() }}
126+
id: slack
127+
uses: slackapi/[email protected]
128+
with:
129+
payload: |
130+
{
131+
"text": ":rotating_light: Dry-Run Recover S3 Repository failed :warning: :warning: :warning: @hero check <${{ env.GITHUB_JOB_URL }}> :rotating_light:"
132+
}
133+
env:
134+
SLACK_WEBHOOK_URL: ${{ secrets.SUPER_SECRET_AGENT_SLACK_WEBHOOK }}
135+
GITHUB_JOB_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}

0 commit comments

Comments
 (0)