Skip to content

Commit

Permalink
Try smaller payload
Browse files Browse the repository at this point in the history
  • Loading branch information
Isengo1989 committed Dec 6, 2023
1 parent dede1f0 commit 574167b
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/watcher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
- uses: actions/checkout@v4
- run: ./.github/scripts/watch.sh snippets
id: watcher
continue-on-error: true
- name: Send custom JSON data to Slack workflow
id: slack
if: steps.watcher.conclusion == 'failure'
Expand All @@ -23,16 +24,8 @@ jobs:
# For posting a rich message using Block Kit
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 }}"
}
}
]
"text": "GitHub Action build result",
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_NOTIFICATIONS_WEBHOOK }}
Expand Down

0 comments on commit 574167b

Please sign in to comment.