Skip to content

Commit 243c238

Browse files
authored
actions: fix wrong substring match in release.yml (#200)
This appears to expect that the release tag is named `release/vX.Y.Z` rather than just `vX.Y.Z`, but all the existing release tags use the second naming format. This is preventing v0.8.0 from being released, as the publish action fails with ``` Error: Crate version v0.8.0 does not match tag refs/tags/v0.8.0 ``` because the refs path was not removed (as it's expected to be `refs/tags/release/` rather than refs/tags/`). I'm...not entirely sure how this ever worked previously...
1 parent 507f578 commit 243c238

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
ref='${{ github.ref }}'
2929
if [[ "$ref" =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+ ]]; then
3030
echo ::set-output name=publish::true
31-
echo ::set-output name=version::"${ref##refs/tags/release/}"
31+
echo ::set-output name=version::"${ref##refs/tags/}"
3232
else
3333
sha=${{ github.sha }}
3434
echo ::set-output name=version::"test-${sha:0:7}"

0 commit comments

Comments
 (0)