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 }}