Skip to content

Commit 33639c5

Browse files
authored
fix: 👷 explicitly checkout newest version to publish (#107)
# Description Currently, the publish step checks out the current *commit*, which isn't the same as the current version (the previous step creates a release commit with version bumping). This PR fixes that to explicitly checkout the newest version (tag). No review needed.
1 parent fbdd28b commit 33639c5

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)