From 0d2d8b9081e64bbce99e3465f0f6a707edd7c986 Mon Sep 17 00:00:00 2001 From: Alvaro Martinez Date: Thu, 14 Dec 2023 17:48:46 +0100 Subject: [PATCH 1/2] chore(ci): add slack notification for releases [ci skip] --- .github/workflows/build.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9cd5662e..1b958bca 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -349,8 +349,20 @@ jobs: echo "VERSION = $VERSION" echo "::set-output name=VERSION::$VERSION" - - name: Run JReleaser - uses: jreleaser/release-action@v1 - env: - JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - JRELEASER_PROJECT_VERSION: ${{ steps.version.outputs.VERSION }} + - name: Send message to slack + uses: archive/github-actions-slack@v2.6.0 + id: send-message + continue-on-error: true + with: + slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_OAUTH_TOKEN }} + slack-channel: ${{ vars.SLACK_CLI_CHANNEL }} + slack-optional-blocks: | + [ + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "🆕 Tower CLI v${{ steps.version.outputs.VERSION }} ${{ format('\nSee ', steps.version.outputs.tag) || '' }}" + }, + } + ] From 51dd861e27c358f765a5deb922418731609656ac Mon Sep 17 00:00:00 2001 From: Alvaro Martinez Date: Thu, 14 Dec 2023 18:20:54 +0100 Subject: [PATCH 2/2] tweak: fix format --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1b958bca..d15c9c95 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -362,7 +362,7 @@ jobs: "type": "section", "text": { "type": "mrkdwn", - "text": "🆕 Tower CLI v${{ steps.version.outputs.VERSION }} ${{ format('\nSee ', steps.version.outputs.tag) || '' }}" + "text": "🆕 Tower CLI `v${{ steps.version.outputs.VERSION }}` ${{ format('', steps.version.outputs.tag) || '' }}." }, } ]