Skip to content

Commit

Permalink
Try fix yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
moshe-azaria-sage committed Mar 18, 2024
1 parent 4ca4921 commit 0abb446
Showing 1 changed file with 40 additions and 40 deletions.
80 changes: 40 additions & 40 deletions .github/workflows/on-fail-json.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,46 +13,46 @@ jobs:
- uses: slackapi/slack-github-action@v1.24.0
with:
payload: |
{
"text": "main branch failure in CI ",
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": ":warning: `main` branch failure in CI ",
"emoji": true
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "View run details: "
},
"accessory": {
"type": "button",
"text": {
"type": "plain_text",
"text": "Run Details",
"emoji": true
},
"value": "clicked_1",
"url": "${{github.server_url}}/${{github.repository}}/actions/runs/${{github.event.workflow_run.id}}",
"action_id": "button-action"
}
},
{
"type": "context",
"elements": [
{
"type": "mrkdwn",
"text": "Linked Repo <${{github.server_url}}/${{github.repository}}|${{github.repository}}> | <${{github.server_url}}/${{github.repository}}/actions/runs/${{github.event.workflow_run.id}}|View Failure>"
}
]
}
]
}
{
"text": "main branch failure in CI ",
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": ":warning: `main` branch failure in CI ",
"emoji": true
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "View run details: "
},
"accessory": {
"type": "button",
"text": {
"type": "plain_text",
"text": "Run Details",
"emoji": true
},
"value": "clicked_1",
"url": "${{github.server_url}}/${{github.repository}}/actions/runs/${{github.event.workflow_run.id}}",
"action_id": "button-action"
}
},
{
"type": "context",
"elements": [
{
"type": "mrkdwn",
"text": "Linked Repo <${{github.server_url}}/${{github.repository}}|${{github.repository}}> | <${{github.server_url}}/${{github.repository}}/actions/runs/${{github.event.workflow_run.id}}|View Failure>"
}
]
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.MOSHE_PERSONAL_SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK

0 comments on commit 0abb446

Please sign in to comment.