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 70923aa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/SEND_MESSAGE.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ 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 }}
payload: |
channel: ${{ secrets.SLACK_CHANNEL_ID }}
message: ${{ steps.report.outputs.message }}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

0 comments on commit 70923aa

Please sign in to comment.