Skip to content

fix: detailed agent errors on frontend (#76) #51

fix: detailed agent errors on frontend (#76)

fix: detailed agent errors on frontend (#76) #51

name: Semantic Release
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
semantic-release:
name: Semantic Release
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-release-${{ github.ref_name }}
cancel-in-progress: false
steps:
# Note: We checkout the repository at the branch that triggered the workflow.
# Python Semantic Release will automatically convert shallow clones to full clones
# if needed to ensure proper history evaluation. However, we forcefully reset the
# branch to the workflow sha because it is possible that the branch was updated
# while the workflow was running, which prevents accidentally releasing un-evaluated
# changes.
- name: Setup | Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 0
ref: ${{ github.ref_name }}
- name: Setup | Force release branch to be at workflow sha
run: |
git reset --hard ${{ github.sha }}
- name: Action | Semantic-release
id: semantic-release
uses: python-semantic-release/python-semantic-release@v10
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
git_committer_name: github-actions[bot]
git_committer_email: 41898282+github-actions[bot]@users.noreply.github.com
- name: Action | Trigger Prod Build Workflow
if: steps.semantic-release.outputs.released == 'true'
uses: peter-evans/repository-dispatch@v4
with:
event-type: release-event
client-payload: '{"version": "${{ steps.semantic-release.outputs.version }}"}'