Skip to content
Merged
Show file tree
Hide file tree
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
72 changes: 72 additions & 0 deletions .github/workflows/sdk_generation_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,75 @@ jobs:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
pypi_token: ${{ secrets.PYPI_TOKEN }}
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

notify-slack-on-failure:
needs: [check-branch, compute-version, generate]
if: failure()
runs-on: ubuntu-latest
steps:
- name: Send Slack notification on failure
uses: slackapi/slack-github-action@v1.27.0
with:
payload: |
{
"text": "❌ Dev SDK Generation Failed (Python)",
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "❌ Dev SDK Generation Failed (Python)"
}
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Repository:*\n${{ github.repository }}"
},
{
"type": "mrkdwn",
"text": "*Branch:*\n${{ github.ref_name }}"
},
{
"type": "mrkdwn",
"text": "*Workflow:*\nGenerate Dev SDK (Python)"
},
{
"type": "mrkdwn",
"text": "*Trigger:*\n${{ github.event_name }}"
}
]
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Commit:*\n<${{ github.event.head_commit.url }}|${{ github.sha }}>"
},
{
"type": "mrkdwn",
"text": "*Author:*\n${{ github.actor }}"
}
]
},
{
"type": "actions",
"elements": [
{
"type": "button",
"text": {
"type": "plain_text",
"text": "View Workflow Run"
},
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
]
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
72 changes: 72 additions & 0 deletions .github/workflows/sdk_generation_prerelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,75 @@ jobs:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
pypi_token: ${{ secrets.PYPI_TOKEN }}
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

notify-slack-on-failure:
needs: [check-branch, compute-version, generate]
if: failure()
runs-on: ubuntu-latest
steps:
- name: Send Slack notification on failure
uses: slackapi/slack-github-action@v1.27.0
with:
payload: |
{
"text": "❌ RC SDK Generation (Prerelease) Failed (Python)",
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "❌ RC SDK Generation (Prerelease) Failed (Python)"
}
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Repository:*\n${{ github.repository }}"
},
{
"type": "mrkdwn",
"text": "*Branch:*\n${{ github.ref_name }}"
},
{
"type": "mrkdwn",
"text": "*Workflow:*\nGenerate RC SDK (Prerelease) (Python)"
},
{
"type": "mrkdwn",
"text": "*Trigger:*\n${{ github.event_name }}"
}
]
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Commit:*\n<${{ github.event.head_commit.url }}|${{ github.sha }}>"
},
{
"type": "mrkdwn",
"text": "*Author:*\n${{ github.actor }}"
}
]
},
{
"type": "actions",
"elements": [
{
"type": "button",
"text": {
"type": "plain_text",
"text": "View Workflow Run"
},
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
]
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
72 changes: 72 additions & 0 deletions .github/workflows/sdk_generation_prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,75 @@ jobs:
echo "- **sdk_generation_dev** on **dev** branch"
echo "- **sdk_generation_stage** on **stage** branch"
} >> "$GITHUB_STEP_SUMMARY"

notify-slack-on-failure:
needs: [check-branch, generate, dispatch-dev-stage]
if: failure()
runs-on: ubuntu-latest
steps:
- name: Send Slack notification on failure
uses: slackapi/slack-github-action@v1.27.0
with:
payload: |
{
"text": "❌ Production SDK Generation Failed (Python)",
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "❌ Production SDK Generation Failed (Python)"
}
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Repository:*\n${{ github.repository }}"
},
{
"type": "mrkdwn",
"text": "*Branch:*\n${{ github.ref_name }}"
},
{
"type": "mrkdwn",
"text": "*Workflow:*\nGenerate Prod SDK (Python)"
},
{
"type": "mrkdwn",
"text": "*Trigger:*\n${{ github.event_name }}"
}
]
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Commit:*\n<${{ github.event.head_commit.url }}|${{ github.sha }}>"
},
{
"type": "mrkdwn",
"text": "*Author:*\n${{ github.actor }}"
}
]
},
{
"type": "actions",
"elements": [
{
"type": "button",
"text": {
"type": "plain_text",
"text": "View Workflow Run"
},
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
]
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
72 changes: 72 additions & 0 deletions .github/workflows/sdk_generation_stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,3 +109,75 @@ jobs:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
pypi_token: ${{ secrets.PYPI_TOKEN }}
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

notify-slack-on-failure:
needs: [check-branch, compute-version, generate]
if: failure()
runs-on: ubuntu-latest
steps:
- name: Send Slack notification on failure
uses: slackapi/slack-github-action@v1.27.0
with:
payload: |
{
"text": "❌ Stage SDK Generation Failed (Python)",
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "❌ Stage SDK Generation Failed (Python)"
}
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Repository:*\n${{ github.repository }}"
},
{
"type": "mrkdwn",
"text": "*Branch:*\n${{ github.ref_name }}"
},
{
"type": "mrkdwn",
"text": "*Workflow:*\nGenerate Stage SDK (Python)"
},
{
"type": "mrkdwn",
"text": "*Trigger:*\n${{ github.event_name }}"
}
]
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Commit:*\n<${{ github.event.head_commit.url }}|${{ github.sha }}>"
},
{
"type": "mrkdwn",
"text": "*Author:*\n${{ github.actor }}"
}
]
},
{
"type": "actions",
"elements": [
{
"type": "button",
"text": {
"type": "plain_text",
"text": "View Workflow Run"
},
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
]
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
72 changes: 72 additions & 0 deletions .github/workflows/sdk_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,75 @@ jobs:
echo "Pushing changes to ${CURRENT_BRANCH} branch..."
git push origin ${CURRENT_BRANCH}
echo "✅ Successfully restored workflow.lock from ${LAST_GA_TAG}"

notify-slack-on-failure:
needs: [check-branch, publish, restore-workflow-lock]
if: failure()
runs-on: ubuntu-latest
steps:
- name: Send Slack notification on failure
uses: slackapi/slack-github-action@v1.27.0
with:
payload: |
{
"text": "❌ SDK Publishing Failed (Python)",
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "❌ SDK Publishing Failed (Python)"
}
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Repository:*\n${{ github.repository }}"
},
{
"type": "mrkdwn",
"text": "*Branch:*\n${{ github.ref_name }}"
},
{
"type": "mrkdwn",
"text": "*Workflow:*\nPublish SDK (Python)"
},
{
"type": "mrkdwn",
"text": "*Trigger:*\n${{ github.event_name }}"
}
]
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Commit:*\n<${{ github.event.head_commit.url }}|${{ github.sha }}>"
},
{
"type": "mrkdwn",
"text": "*Author:*\n${{ github.actor }}"
}
]
},
{
"type": "actions",
"elements": [
{
"type": "button",
"text": {
"type": "plain_text",
"text": "View Workflow Run"
},
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
]
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
Loading