Skip to content

Commit

Permalink
fix: Update slack action usage for slack action v2
Browse files Browse the repository at this point in the history
  • Loading branch information
mutahhir committed Jan 14, 2025
1 parent 3ee6141 commit 363c8d0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cdktf-provider-docs-rollout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ jobs:
- name: Send failures to Slack
uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0
with:
webhook_url: ${{ secrets.REGISTRY_DOCS_FAILURE_SLACK_WEBHOOK_URL }}
webhook-type: webhook-trigger
payload: |
{
"run_url": "https://github.com/hashicorp/terraform-cdk/actions/runs/${{ github.run_id }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.REGISTRY_DOCS_FAILURE_SLACK_WEBHOOK_URL }}
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -362,10 +362,10 @@ jobs:
- name: Send failures to Slack
uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0
with:
webhook: ${{ secrets.FAILURE_SLACK_WEBHOOK_URL }}
webhook-type: webhook-trigger
payload: |
{
"name": "main",
"run_url": "https://github.com/hashicorp/terraform-cdk/actions/runs/${{ github.run_id }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.FAILURE_SLACK_WEBHOOK_URL }}
4 changes: 2 additions & 2 deletions .github/workflows/release_next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,10 @@ jobs:
- name: Send failures to Slack
uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0
with:
webhook: ${{ secrets.FAILURE_SLACK_WEBHOOK_URL }}
webhook-type: webhook-trigger
payload: |
{
"name": "next",
"run_url": "https://github.com/hashicorp/terraform-cdk/actions/runs/${{ github.run_id }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.FAILURE_SLACK_WEBHOOK_URL }}

0 comments on commit 363c8d0

Please sign in to comment.