Skip to content

Commit

Permalink
Merge branch 'main' into brooke.webhook-payloads
Browse files Browse the repository at this point in the history
  • Loading branch information
brookesargent authored Nov 21, 2024
2 parents 3940d99 + fdc4317 commit 54ac54f
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,14 @@ jobs:
- name: Notify if scheduled run fails
id: slack-notify
if: ${{ failure() && github.event_name == 'schedule' }}
uses: slackapi/slack-github-action@v1.27.0
uses: slackapi/slack-github-action@v2.0.0
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: incoming-webhook
payload: |
{
"username": "Terraform Provider CI",
"text": ":rotating_light: The scheduled test suite run failed for the US region.\n\n<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Workflow>",
"icon_emoji": ":terraform-fall-down:"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
username: "Terraform Provider CI"
text: ":rotating_light: The scheduled test suite run failed for the US region.\n\n<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Workflow>"
icon_emoji: ":terraform-fall-down:"
- name: Cleanup Dangling Resources
if: ${{ always() }}
Expand Down Expand Up @@ -204,16 +202,14 @@ jobs:
- name: Notify if scheduled run fails
id: slack-notify
if: ${{ failure() && github.event_name == 'schedule' }}
uses: slackapi/slack-github-action@v1.27.0
uses: slackapi/slack-github-action@v2.0.0
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: incoming-webhook
payload: |
{
"username": "Terraform Provider CI",
"text": ":rotating_light: The scheduled test suite run failed for the EU region.\n\n<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Workflow>",
"icon_emoji": ":terraform-fall-down:"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
username: "Terraform Provider CI"
text: ":rotating_light: The scheduled test suite run failed for the EU region.\n\n<https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Workflow>"
icon_emoji: ":terraform-fall-down:"
- name: Cleanup Dangling Resources
if: ${{ always() }}
Expand Down

0 comments on commit 54ac54f

Please sign in to comment.