From 03a3a2068a422115016a1ff4cab9eccf14849dff Mon Sep 17 00:00:00 2001 From: f-trycua Date: Tue, 18 Nov 2025 23:43:45 +0100 Subject: [PATCH] Fix checkout ref to use main branch in publish workflows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ensure publish workflows check out the main branch to get the latest bumped version after the bump-version workflow pushes changes. Previously, workflows were checking out the SHA at trigger time, which didn't include the version bump committed by bump-version job. This fixes the "Verify version consistency" step failure where the expected version didn't match the pyproject.toml version. Related to: https://github.com/trycua/cua/actions/runs/19482814921 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/pypi-publish-agent.yml | 2 ++ .github/workflows/pypi-reusable-publish.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/workflows/pypi-publish-agent.yml b/.github/workflows/pypi-publish-agent.yml index c36c1c1b..f20cf2fb 100644 --- a/.github/workflows/pypi-publish-agent.yml +++ b/.github/workflows/pypi-publish-agent.yml @@ -31,6 +31,8 @@ jobs: core_version: ${{ steps.update-deps.outputs.core_version }} steps: - uses: actions/checkout@v4 + with: + ref: main - name: Determine version id: get-version diff --git a/.github/workflows/pypi-reusable-publish.yml b/.github/workflows/pypi-reusable-publish.yml index 614d8a7d..9be38105 100644 --- a/.github/workflows/pypi-reusable-publish.yml +++ b/.github/workflows/pypi-reusable-publish.yml @@ -47,6 +47,7 @@ jobs: steps: - uses: actions/checkout@v4 with: + ref: main fetch-depth: 0 # Full history for release creation - name: Set up Python