From 3ed6ffaffdf8e58157d84e8db0dbe33b869acbf3 Mon Sep 17 00:00:00 2001 From: ykim-1 Date: Mon, 18 Nov 2024 10:20:41 -0800 Subject: [PATCH] gha test --- .github/workflows/integration-tests.yml | 8 ++++---- .github/workflows/release-notify-slack.yml | 18 +++--------------- 2 files changed, 7 insertions(+), 19 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 3fb63354..16cd0b8f 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -196,9 +196,11 @@ jobs: - name: Notify Slack uses: slackapi/slack-github-action@v2.0.0 with: - channel-id: ${{ secrets.SLACK_CHANNEL_ID }} + method: chat.postMessage + token: ${{ secrets.SLACK_BOT_TOKEN }} payload: | { + channel: ${{ secrets.SLACK_CHANNEL_ID }} "blocks": [ { "type": "section", @@ -249,6 +251,4 @@ jobs: ] } ] - } - env: - SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} \ No newline at end of file + } \ No newline at end of file diff --git a/.github/workflows/release-notify-slack.yml b/.github/workflows/release-notify-slack.yml index 99b669c2..c38f8b6a 100644 --- a/.github/workflows/release-notify-slack.yml +++ b/.github/workflows/release-notify-slack.yml @@ -13,9 +13,11 @@ jobs: id: main_message uses: slackapi/slack-github-action@v2.0.0 with: - channel-id: ${{ secrets.DEV_DX_SLACK_CHANNEL_ID }} + method: chat.postMessage + token: ${{ secrets.SLACK_BOT_TOKEN }} payload: | { + channel: ${{ secrets.DEV_DX_SLACK_CHANNEL_ID }} "blocks": [ { "type": "section", @@ -26,17 +28,3 @@ jobs: } ] } - env: - SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} - - - name: Notify Slack - Threaded Release Notes - uses: slackapi/slack-github-action@v2.0.0 - with: - channel-id: ${{ secrets.DEV_DX_SLACK_CHANNEL_ID }} - payload: | - { - "thread_ts": "${{ steps.main_message.outputs.ts }}", - "text": "*<${{ github.event.release.html_url }}| ${{ github.event.release.tag_name }} Release notes>*" - } - env: - SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}