Skip to content

Commit

Permalink
chore: update slackapi/slack-github-action action to v2
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Maciej Barelkowski <[email protected]>
  • Loading branch information
renovate[bot] and barmac authored Nov 18, 2024
1 parent 2c4d44c commit 5aad098
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/SEND_MESSAGE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@ jobs:
run: npm ci
- name: Generate report
id: report
run: echo "payload=$(node ./bin/cli.js --format=slack)" >> "$GITHUB_OUTPUT"
run: echo "message=$(node ./bin/cli.js --format=slack)" >> "$GITHUB_OUTPUT"
- name: Post to a Slack channel
uses: slackapi/slack-github-action@v1.26.0
uses: slackapi/slack-github-action@v2.0.0
with:
channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
payload: ${{ steps.report.outputs.payload }}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
method: chat.postMessage
token: ${{ secrets.SLACK_BOT_TOKEN }}
payload: |
channel: ${{ secrets.SLACK_CHANNEL_ID }}
text: Community health report
blocks: ${{ toJson(fromJson(steps.report.outputs.message).blocks) }}
unfurl_links: ${{ fromJson(steps.report.outputs.message).unfurl_links }}

0 comments on commit 5aad098

Please sign in to comment.