Skip to content

Commit

Permalink
Add slack-github-action
Browse files Browse the repository at this point in the history
  • Loading branch information
gomasy committed Jan 7, 2025
1 parent c9eff6a commit 2e25cbf
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,18 @@ jobs:
with:
push: true
tags: ghcr.io/gomasy/bookshelf:latest
- uses: slackapi/slack-github-action@v2
name: Post a message in a channel
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: incoming-webhook
payload: |
channel: "${{ secrets.SLACK_CHANNEL }}"
username: "GitHub Actions"
icon_emoji: ":gear:"
text: "*GitHub Action build result*: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
blocks:
- type: "section"
text:
type: "mrkdwn"
text: "GitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"

0 comments on commit 2e25cbf

Please sign in to comment.