Skip to content

Commit 1f84fed

Browse files
committed
fix: 👷 explicitly checkout newest version to publish
1 parent fbdd28b commit 1f84fed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/release-package.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ jobs:
4040

4141
- name: Checkout
4242
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
43+
with:
44+
# Need to explicitly get the current version, otherwise it defaults to current commit
45+
# (which is not the same as the release/version commit).
46+
ref: ${{ needs.release.outputs.current_version }}
4347

4448
# This workflow and the publish workflows are based on:
4549
# - https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/

0 commit comments

Comments
 (0)