We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a16e95a commit 549a597Copy full SHA for 549a597
.github/workflows/release-reproducible.yml
@@ -24,15 +24,15 @@ jobs:
24
# Get the tag that points to the head SHA of the triggering workflow
25
TAG=$(gh api /repos/${{ github.repository }}/git/refs/tags \
26
--jq '.[] | select(.object.sha == "${{ github.event.workflow_run.head_sha }}") | .ref' \
27
- | head -1)
+ | head -1 \
28
+ | sed 's|refs/tags/||')
29
30
if [ -z "$TAG" ]; then
31
echo "No tag found for SHA ${{ github.event.workflow_run.head_sha }}"
32
exit 1
33
fi
34
35
echo "VERSION=$TAG" >> $GITHUB_OUTPUT
- echo "Found tag: $TAG"
36
outputs:
37
VERSION: ${{ steps.extract_version.outputs.VERSION }}
38
0 commit comments