Skip to content

Commit a099e31

Browse files
authored
[chore] fix wrong tag in binary release pipeline (#1115)
1 parent 6c2de56 commit a099e31

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/base-binary-release.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ jobs:
4343
# second to last tag (last one is the current release)
4444
run: |
4545
prev_tag=$(git tag | grep "cmd/${{ inputs.binary }}" | grep -v "nightly" | sort -r --version-sort | head -n 2 | tail -n 1)
46+
current_tag="cmd/${{ inputs.binary }}/${{ github.ref }}"
4647
echo "PREVIOUS_RELEASE_TAG=$prev_tag" >> "$GITHUB_OUTPUT"
48+
echo "CURRENT_TAG=$current_tag" >> "$GITHUB_OUTPUT"
4749
4850
- name: Set nightly enabled
4951
id: nightly-check
@@ -120,4 +122,4 @@ jobs:
120122
COSIGN_YES: true
121123
SKIP_SIGNS: false
122124
GORELEASER_PREVIOUS_TAG: ${{ steps.prev-tag.outputs.PREVIOUS_RELEASE_TAG }}
123-
GORELEASER_CURRENT_TAG: ${{ github.ref_name }}
125+
GORELEASER_CURRENT_TAG: ${{ steps.prev-tag.outputs.CURRENT_TAG }}

0 commit comments

Comments
 (0)