From 07d416bcb2fcf3e7f997b318547e5e1e8ad72603 Mon Sep 17 00:00:00 2001 From: Mutahhir Hayat Date: Tue, 14 Jan 2025 11:56:36 +0100 Subject: [PATCH 1/2] fix: Update slack action usage for slack action v2 --- .github/workflows/cdktf-provider-docs-rollout.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- .github/workflows/release_next.yml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) 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 }} From 980582309d6c5afe5a7b0d2f77079f1331fd95d1 Mon Sep 17 00:00:00 2001 From: Mutahhir Hayat Date: Thu, 16 Jan 2025 10:43:55 +0100 Subject: [PATCH 2/2] fix: typo on key name within github action --- .github/workflows/cdktf-provider-docs-rollout.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cdktf-provider-docs-rollout.yml b/.github/workflows/cdktf-provider-docs-rollout.yml index 6789653ed9..cd7266b66a 100644 --- a/.github/workflows/cdktf-provider-docs-rollout.yml +++ b/.github/workflows/cdktf-provider-docs-rollout.yml @@ -57,7 +57,7 @@ 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: ${{ secrets.REGISTRY_DOCS_FAILURE_SLACK_WEBHOOK_URL }} webhook-type: webhook-trigger payload: | {