From 7a251bf3d3596819f92f37f5838a800737885396 Mon Sep 17 00:00:00 2001 From: Gary H <26419401+Gary-H9@users.noreply.github.com> Date: Wed, 15 Jan 2025 09:03:58 +0000 Subject: [PATCH 1/4] :wrench: Update Slack Action parameter --- .github/workflows/reusable-workflow-terraform.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reusable-workflow-terraform.yml b/.github/workflows/reusable-workflow-terraform.yml index 5d6c5d9902..91957e034c 100644 --- a/.github/workflows/reusable-workflow-terraform.yml +++ b/.github/workflows/reusable-workflow-terraform.yml @@ -371,4 +371,4 @@ jobs: } env: SLACK_WEBHOOK_URL: ${{ env.SLACK_WEBHOOK_URL }} - SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK + SLACK_WEBHOOK_TYPE: incoming-webhook From 128cce061d7df1c36bf61616132189a5bad3d9c0 Mon Sep 17 00:00:00 2001 From: Gary H <26419401+Gary-H9@users.noreply.github.com> Date: Wed, 15 Jan 2025 09:08:12 +0000 Subject: [PATCH 2/4] :wrench: Update as per Release docs --- .github/workflows/reusable-workflow-terraform.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/reusable-workflow-terraform.yml b/.github/workflows/reusable-workflow-terraform.yml index 91957e034c..aaa57485e6 100644 --- a/.github/workflows/reusable-workflow-terraform.yml +++ b/.github/workflows/reusable-workflow-terraform.yml @@ -364,6 +364,7 @@ jobs: id: slack_notification uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0 with: + webhook-type: incoming-webhook payload: | { "run_id": "${{ github.run_id }}", @@ -371,4 +372,4 @@ jobs: } env: SLACK_WEBHOOK_URL: ${{ env.SLACK_WEBHOOK_URL }} - SLACK_WEBHOOK_TYPE: incoming-webhook + From faabd3b6fde6003460b33bd5dbce834582689431 Mon Sep 17 00:00:00 2001 From: Gary H <26419401+Gary-H9@users.noreply.github.com> Date: Wed, 15 Jan 2025 09:48:41 +0000 Subject: [PATCH 3/4] :wrench: Remove blank line --- .github/workflows/reusable-workflow-terraform.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/reusable-workflow-terraform.yml b/.github/workflows/reusable-workflow-terraform.yml index aaa57485e6..75a9903129 100644 --- a/.github/workflows/reusable-workflow-terraform.yml +++ b/.github/workflows/reusable-workflow-terraform.yml @@ -372,4 +372,3 @@ jobs: } env: SLACK_WEBHOOK_URL: ${{ env.SLACK_WEBHOOK_URL }} - From 9cc64a32bda7bc09744c9873b5d0aaafa4e5ee1b Mon Sep 17 00:00:00 2001 From: Gary H <26419401+Gary-H9@users.noreply.github.com> Date: Wed, 15 Jan 2025 10:53:43 +0000 Subject: [PATCH 4/4] Use 'webhook' in with --- .github/workflows/reusable-workflow-terraform.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/reusable-workflow-terraform.yml b/.github/workflows/reusable-workflow-terraform.yml index 75a9903129..49d5ab1431 100644 --- a/.github/workflows/reusable-workflow-terraform.yml +++ b/.github/workflows/reusable-workflow-terraform.yml @@ -364,11 +364,10 @@ jobs: id: slack_notification uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0 with: + webhook: ${{ env.SLACK_WEBHOOK_URL }} webhook-type: incoming-webhook payload: | { "run_id": "${{ github.run_id }}", "pr_number": "${{ steps.extract_pr.outputs.pr_number }}" } - env: - SLACK_WEBHOOK_URL: ${{ env.SLACK_WEBHOOK_URL }}