Skip to content

sending data as a message with slack incomming webhook URL #2

sending data as a message with slack incomming webhook URL

sending data as a message with slack incomming webhook URL #2

Workflow file for this run

name: Notify with Slack
on: push
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Post a message in a channel
uses: slackapi/slack-github-action@v2.1.1
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: incoming-webhook
payload: |
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 }}"