From da64c0840cba09aa2402a8d0ebdb513db61d2fbb Mon Sep 17 00:00:00 2001 From: KANAMORI Yu Date: Fri, 29 Nov 2024 11:33:24 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=E3=83=AA=E3=83=AA=E3=83=BC=E3=82=B9?= =?UTF-8?q?=E7=94=A8=20GitHub=20Actions=20=E3=81=AB=E3=81=8A=E3=81=91?= =?UTF-8?q?=E3=82=8B=E5=88=A9=E7=94=A8=E3=83=A9=E3=82=A4=E3=83=96=E3=83=A9?= =?UTF-8?q?=E3=83=AA=E6=9B=B4=E6=96=B0=E3=81=AB=E8=BF=BD=E5=BE=93=20(#5151?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publishRelease.yml | 7 ++----- .github/workflows/startRelease.yml | 9 +++++---- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publishRelease.yml b/.github/workflows/publishRelease.yml index 7e1b656cd9..e33bd55995 100644 --- a/.github/workflows/publishRelease.yml +++ b/.github/workflows/publishRelease.yml @@ -72,9 +72,6 @@ jobs: - name: Send message to Slack uses: slackapi/slack-github-action@v2.0.0 with: + webhook: ${{ secrets.SLACK_WEBHOOK_URL }} payload: | - { - "text": " npm publish が完了しました。Release Pull Request を手動でマージしたらリリース完了です。" - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + text: " npm publish が完了しました。Release Pull Request を手動でマージしたらリリース完了です。" diff --git a/.github/workflows/startRelease.yml b/.github/workflows/startRelease.yml index b354e45dda..b2ae30e81e 100644 --- a/.github/workflows/startRelease.yml +++ b/.github/workflows/startRelease.yml @@ -72,7 +72,8 @@ jobs: if: ${{ github.event.client_payload.channel_id != null }} uses: slackapi/slack-github-action@v2.0.0 with: - channel-id: ${{ github.event.client_payload.channel_id }} - payload: ${{ github.event.client_payload.say }} - env: - SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} + method: chat.postMessage + token: ${{ secrets.SLACK_BOT_TOKEN }} + payload: | + channel: ${{ github.event.client_payload.channel_id }} + text: ${{ github.event.client_payload.say }}