Skip to content

Commit

Permalink
ci: upgrade to slack@2
Browse files Browse the repository at this point in the history
  • Loading branch information
barmac committed Nov 18, 2024
1 parent 543cb78 commit 6e26266
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/SEND_MESSAGE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ 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/[email protected]
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 }}
blocks: ${{ fromJson(steps.report.outputs.message).blocks }}
unfurl_links: ${{ fromJson(steps.report.outputs.message).unfurl_links }}

0 comments on commit 6e26266

Please sign in to comment.