From 1f84fed330b11cca6a808b11fc1f2d2eddcf6e81 Mon Sep 17 00:00:00 2001 From: "Luke W. Johnston" Date: Wed, 23 Jul 2025 13:33:56 +0200 Subject: [PATCH] fix: :construction_worker: explicitly checkout newest version to publish --- .github/workflows/release-package.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml index 76e6554..8aef6bc 100644 --- a/.github/workflows/release-package.yml +++ b/.github/workflows/release-package.yml @@ -40,6 +40,10 @@ jobs: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + # Need to explicitly get the current version, otherwise it defaults to current commit + # (which is not the same as the release/version commit). + ref: ${{ needs.release.outputs.current_version }} # This workflow and the publish workflows are based on: # - https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/