Skip to content

Commit

Permalink
Change conclusion check
Browse files Browse the repository at this point in the history
  • Loading branch information
Isengo1989 committed Dec 6, 2023
1 parent 08b0fa6 commit 3967cde
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/watcher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,21 @@ jobs:
id: watcher
- name: Send custom JSON data to Slack workflow
id: slack
if: steps.watcher.conclusion != 'success'
uses: slackapi/[email protected]
with:
# For posting a rich message using Block Kit
message: "GitHub Action build result"
payload: |
{
"text": "Text: GitHub Action build result: ${{ job.status }}",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Block: GitHub Action build result: ${{ job.status }}"
}
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_NOTIFICATIONS_WEBHOOK }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK

0 comments on commit 3967cde

Please sign in to comment.