Skip to content

Commit 42c6070

Browse files
committed
Fix matching requested version with Git tag in GHA
1 parent c5dd39a commit 42c6070

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/test-library.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,13 +266,15 @@ jobs:
266266
- name: Setup git user as [bot]
267267
if: >-
268268
fromJSON(needs.pre-setup.outputs.is-untagged-devel)
269+
&& fromJSON(needs.pre-setup.outputs.release-requested)
269270
uses: fregante/[email protected]
270271
- name: >-
271272
Tag the release in the local Git repo
272273
as ${{ needs.pre-setup.outputs.git-tag }}
273-
for setuptools-scm to se the desired version
274+
for setuptools-scm to set the desired version
274275
if: >-
275276
fromJSON(needs.pre-setup.outputs.is-untagged-devel)
277+
&& fromJSON(needs.pre-setup.outputs.release-requested)
276278
run: >-
277279
git tag
278280
-m '${{ needs.pre-setup.outputs.git-tag }}'
@@ -783,7 +785,10 @@ jobs:
783785
Tag the release in the local Git repo
784786
as v${{ needs.pre-setup.outputs.git-tag }}
785787
run: >-
786-
git tag '${{ needs.pre-setup.outputs.git-tag }}'
788+
git tag
789+
-m '${{ needs.pre-setup.outputs.git-tag }}'
790+
'${{ needs.pre-setup.outputs.git-tag }}'
791+
--
787792
${{ github.event.inputs.release-commitish }}
788793
- name: >-
789794
Push ${{ needs.pre-setup.outputs.git-tag }} tag corresponding

0 commit comments

Comments
 (0)