Skip to content

feat: regenerate CLI from OpenAPI spec #83

feat: regenerate CLI from OpenAPI spec

feat: regenerate CLI from OpenAPI spec #83

name: build-release
on:
push:
branches:
- main
paths-ignore:
- ".github/**"
workflow_dispatch:
permissions:
contents: write
jobs:
tag:
runs-on: ubuntu-latest
outputs:
new_tag: ${{ steps.bump.outputs.new_tag }}
steps:
- name: Repo checkout
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Bump version and push tag
id: bump
uses: mathieudutour/github-tag-action@v6.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
release_branches: main
release:
needs: tag
if: needs.tag.outputs.new_tag != ''
uses: ./.github/workflows/release.yaml
secrets: inherit
with:
tag: ${{ needs.tag.outputs.new_tag }}
notify-failure:
needs: [tag, release]
if: failure()
runs-on: ubuntu-latest
steps:
- name: Notify Slack on release failure
uses: slackapi/slack-github-action@v4.0.0
with:
errors: true
webhook: ${{ secrets.PLATFORM_INCIDENT_SLACK_CHANNEL_WEBHOOK }}
webhook-type: incoming-webhook
payload: |
text: ":rotating_light: Release failed in ${{ github.repository }}"
blocks:
- type: section
text:
type: mrkdwn
text: |
:rotating_light: *Release failed:* `${{ github.repository }}`
*Commit:* <${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>
- type: actions
elements:
- type: button
text:
type: plain_text
text: "View failed run"
url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"