Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,62 @@ jobs:
# --source-tag "$GITHUB_REF_NAME" \
# "$fn"
# done <<<"$checksums"

notify-release-failure:
name: Notify Release Failure
needs:
- compute-build-flags
- release-binaries
- image-build-and-push
- update-docs-website-binaries
if: ${{ failure() }}
runs-on: ubuntu-slim
permissions: {}
steps:
- name: Send Slack Notification
uses: slackapi/slack-github-action@b0fa283ad8fea605de13dc3f449259339835fc52 # v2.1.0
with:
webhook: ${{ secrets.SLACK_TOOLHIVE_RELEASE_WEBHOOK_URL }}
webhook-type: incoming-webhook
payload: |
{
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "🚨 ToolHive Release Failed",
"emoji": true
}
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Version:*\n${{ github.ref_name }}"
},
{
"type": "mrkdwn",
"text": "*Triggered by:*\n${{ github.actor }}"
}
]
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Workflow Run:*\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Failed Run>"
}
},
{
"type": "context",
"elements": [
{
"type": "mrkdwn",
"text": "Repository: ${{ github.repository }} | Commit: ${{ github.sha }}"
}
]
}
]
}
Loading