Skip to content

feat(model-sources): advertise operator-declared reasoning efforts (#… #1062

feat(model-sources): advertise operator-declared reasoning efforts (#…

feat(model-sources): advertise operator-declared reasoning efforts (#… #1062

name: Release Please
on:
push:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-24.04
steps:
- name: Run release-please
id: release-please
uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
config-file: .github/release-please-config.json
manifest-file: .github/release-please-manifest.json
# release-please bumps pyproject.toml but cannot regenerate uv.lock, so the
# stable/beta release guards fail until the lockfile records the new project
# version. Sync it here so release PRs are mergeable without a manual commit.
# The branch is resolved from the canonical open release PR (not the action's
# update-only `pr` output) so a rerun after a failed sync still repairs it.
- name: Find open release PR branch
id: release-branch
env:
GH_TOKEN: ${{ secrets.RELEASE_PLEASE_TOKEN }}
run: |
branch=$(gh pr list --repo "${{ github.repository }}" --state open \
--label "autorelease: pending" --json headRefName,headRepositoryOwner \
--jq '[.[]
| select(.headRefName | startswith("release-please--"))
| select(.headRepositoryOwner.login == "${{ github.repository_owner }}")
][0].headRefName // empty')
echo "branch=$branch" >> "$GITHUB_OUTPUT"
- name: Checkout release branch
if: ${{ steps.release-branch.outputs.branch != '' }}
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
ref: ${{ steps.release-branch.outputs.branch }}
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
- name: Set up uv
if: ${{ steps.release-branch.outputs.branch != '' }}
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9
with:
python-version: "3.13"
enable-cache: true
prune-cache: true
- name: Sync uv.lock with the release version
if: ${{ steps.release-branch.outputs.branch != '' }}
run: |
uv lock
if git diff --quiet -- uv.lock; then
echo "uv.lock already in sync"
exit 0
fi
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add uv.lock
git commit -m "chore(release): sync uv.lock with the release version"
git push