diff --git a/.github/workflows/cdktf-provider-docs-rollout.yml b/.github/workflows/cdktf-provider-docs-rollout.yml index 3105007a67..6789653ed9 100644 --- a/.github/workflows/cdktf-provider-docs-rollout.yml +++ b/.github/workflows/cdktf-provider-docs-rollout.yml @@ -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 }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8d44eab06e..afc85a5f12 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/.github/workflows/release_next.yml b/.github/workflows/release_next.yml index 1263434701..9c1a93792f 100644 --- a/.github/workflows/release_next.yml +++ b/.github/workflows/release_next.yml @@ -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 }}