Skip to content

Commit 350dcb6

Browse files
authored
Create slack-webhook.yaml
1 parent 737ffc5 commit 350dcb6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
- name: Post a message in a channel
2+
uses: slackapi/[email protected]
3+
with:
4+
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
5+
webhook-type: incoming-webhook
6+
payload: |
7+
text: "*GitHub Action build result*: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
8+
blocks:
9+
- type: "section"
10+
text:
11+
type: "mrkdwn"
12+
text: "GitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"

0 commit comments

Comments
 (0)