From 52fd735d17a14621fca78fd8ee4865446fb6e569 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 5 Dec 2024 10:34:05 +0000 Subject: [PATCH 1/2] Bump slackapi/slack-github-action from 1.24.0 to 2.0.0 Bumps [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action) from 1.24.0 to 2.0.0. - [Release notes](https://github.com/slackapi/slack-github-action/releases) - [Commits](https://github.com/slackapi/slack-github-action/compare/e28cf165c92ffef168d23c5c9000cffc8a25e117...485a9d42d3a73031f12ec201c457e2162c45d02d) --- updated-dependencies: - dependency-name: slackapi/slack-github-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/create-release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create-release.yaml b/.github/workflows/create-release.yaml index 43ed039f9..10803af58 100644 --- a/.github/workflows/create-release.yaml +++ b/.github/workflows/create-release.yaml @@ -131,7 +131,7 @@ jobs: if: success() steps: - name: Notify - uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # v1.24.0 + uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0 with: payload: | { From 7c79bec4592f7695179aa3713d559460b04221e5 Mon Sep 17 00:00:00 2001 From: Tim Riffer Date: Thu, 5 Dec 2024 14:02:15 +0100 Subject: [PATCH 2/2] Update usage of slack-github-action to match new API --- .../slack-notification-failed-workflow/action.yaml | 11 +++++------ .github/workflows/create-release.yaml | 11 +++++------ 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/actions/slack-notification-failed-workflow/action.yaml b/.github/actions/slack-notification-failed-workflow/action.yaml index 7a88832ec..da2c2b5d1 100644 --- a/.github/actions/slack-notification-failed-workflow/action.yaml +++ b/.github/actions/slack-notification-failed-workflow/action.yaml @@ -12,10 +12,9 @@ runs: - name: Notify uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # v1.24.0 with: + webhook: ${{ secrets.SLACK_WEBHOOK_URL }} + webhook-type: webhook-trigger + payload-templated: true payload: | - { - "repository": "${{ github.repository }}", - "workflow": "${{ github.workflow }}" - } - env: - SLACK_WEBHOOK_URL: ${{ inputs.SLACK_WEBHOOK_URL }} + repository: ${{ github.repository }}, + workflow: ${{ github.workflow }} \ No newline at end of file diff --git a/.github/workflows/create-release.yaml b/.github/workflows/create-release.yaml index 10803af58..42cd8da53 100644 --- a/.github/workflows/create-release.yaml +++ b/.github/workflows/create-release.yaml @@ -133,10 +133,9 @@ jobs: - name: Notify uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0 with: + webhook: ${{ secrets.SLACK_RELEASE_WEBHOOK }} + webhook-type: webhook-trigger + payload-templated: true payload: | - { - "repository": "${{ github.repository }}", - "release": "${{ inputs.name }}" - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_RELEASE_WEBHOOK }} \ No newline at end of file + repository: ${{ github.repository }}, + release: ${{ inputs.name }} \ No newline at end of file