From 2a0e86c58bb6023499f3df70042a1bb38fb7efa9 Mon Sep 17 00:00:00 2001 From: "alma-renovate-bot[bot]" <163289924+alma-renovate-bot[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 10:20:26 +0000 Subject: [PATCH 1/2] chore(deps): update slackapi/slack-github-action action to v2 --- .github/workflows/release-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index 8106cff6..ab9371fa 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -141,7 +141,7 @@ jobs: cc <@france.berut> <@khadija.cherif> - name: Send changelog to Slack - uses: slackapi/slack-github-action@v1.27.0 + uses: slackapi/slack-github-action@v2.0.0 with: channel-id: CR9C57YM6 slack-message: ${{ steps.slack-markdown-release-notes.outputs.text }} From dcddfd461c74c50fb9e3630a08545486253abfec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Zuffinetti?= Date: Tue, 26 Nov 2024 12:02:37 +0100 Subject: [PATCH 2/2] Handle breaking changes --- .github/workflows/release-publish.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release-publish.yml b/.github/workflows/release-publish.yml index ab9371fa..d31ede76 100644 --- a/.github/workflows/release-publish.yml +++ b/.github/workflows/release-publish.yml @@ -143,12 +143,10 @@ jobs: - name: Send changelog to Slack uses: slackapi/slack-github-action@v2.0.0 with: - channel-id: CR9C57YM6 - slack-message: ${{ steps.slack-markdown-release-notes.outputs.text }} + method: chat.postMessage + token: ${{ secrets.SLACK_RELEASE_CHANGELOG_BOT_TOKEN }} payload: | - { - "username": "${{ github.event.sender.login }}", - "icon_url": "${{ github.event.sender.avatar_url }}" - } - env: - SLACK_BOT_TOKEN: ${{ secrets.SLACK_RELEASE_CHANGELOG_BOT_TOKEN }} + channel: CR9C57YM6 + username: "${{ github.event.sender.login }}" + icon_url: "${{ github.event.sender.avatar_url }}" + text: ${{ toJson(steps.slack-markdown-release-notes.outputs.text) }}