Skip to content

Commit bea3ad8

Browse files
authored
BRE-840/fix-pypi-version (#124)
* testing version bump fix * add step to show version * comment out step to skip jobs * testing removal and fix rework
1 parent 0f5a7bc commit bea3ad8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/cd.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
needs: version-type
2323
outputs:
2424
version: ${{ steps.get-version.outputs.version }}
25+
commit_hash: ${{ steps.version-commit.outputs.commit_hash }}
2526
steps:
2627
- name: Generate GH App token
2728
uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1.12.0
@@ -91,6 +92,11 @@ jobs:
9192
git tag v$VERSION
9293
git push
9394
git push --tags
95+
96+
- name: Output version bump commit hash
97+
id: version-commit
98+
run: |
99+
echo "commit_hash=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
94100
95101
release:
96102
name: GitHub release
@@ -116,6 +122,9 @@ jobs:
116122
steps:
117123
- name: Check out repo
118124
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
125+
with:
126+
fetch-depth: 0
127+
ref: ${{ needs.version-bump.outputs.commit_hash }}
119128

120129
- name: Set up Python
121130
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0

0 commit comments

Comments
 (0)