Skip to content

Commit 549a597

Browse files
committed
fix tag
Signed-off-by: bakhtin <a@bakhtin.net>
1 parent a16e95a commit 549a597

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release-reproducible.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ jobs:
2424
# Get the tag that points to the head SHA of the triggering workflow
2525
TAG=$(gh api /repos/${{ github.repository }}/git/refs/tags \
2626
--jq '.[] | select(.object.sha == "${{ github.event.workflow_run.head_sha }}") | .ref' \
27-
| head -1)
27+
| head -1 \
28+
| sed 's|refs/tags/||')
2829
2930
if [ -z "$TAG" ]; then
3031
echo "No tag found for SHA ${{ github.event.workflow_run.head_sha }}"
3132
exit 1
3233
fi
3334
3435
echo "VERSION=$TAG" >> $GITHUB_OUTPUT
35-
echo "Found tag: $TAG"
3636
outputs:
3737
VERSION: ${{ steps.extract_version.outputs.VERSION }}
3838

0 commit comments

Comments
 (0)