diff --git a/.github/workflows/notify-coverage.yml b/.github/workflows/notify-coverage.yml index ad6070254..70b6ff187 100644 --- a/.github/workflows/notify-coverage.yml +++ b/.github/workflows/notify-coverage.yml @@ -22,9 +22,10 @@ jobs: if: needs.coverage-trend.outputs.should_notify == 'true' steps: - name: Send notification - uses: slackapi/slack-github-action@v1.27.0 + uses: slackapi/slack-github-action@v2.0.0 with: - channel-id: 'C04SHCL4FKP' - slack-message: ${{ needs.coverage-trend.outputs.msg }} - env: - SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} + method: chat.postMessage + token: ${{ secrets.SLACK_BOT_TOKEN }} + payload: | + channel: 'C04SHCL4FKP' + text: ${{ needs.coverage-trend.outputs.msg }}