Skip to content

Commit a16e95a

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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/release-reproducible.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ 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 \
28-
| sed 's|refs/tags/||')
27+
| head -1)
2928
3029
if [ -z "$TAG" ]; then
3130
echo "No tag found for SHA ${{ github.event.workflow_run.head_sha }}"
@@ -47,7 +46,7 @@ jobs:
4746
steps:
4847
- uses: actions/checkout@v5
4948
with:
50-
ref: ${{ github.event.workflow_run.head_sha }}
49+
ref: ${{ needs.extract-version.outputs.VERSION }}
5150

5251
- name: Set up Docker Buildx
5352
uses: docker/setup-buildx-action@v3

0 commit comments

Comments
 (0)