We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c2de56 commit a099e31Copy full SHA for a099e31
.github/workflows/base-binary-release.yaml
@@ -43,7 +43,9 @@ jobs:
43
# second to last tag (last one is the current release)
44
run: |
45
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 }}"
47
echo "PREVIOUS_RELEASE_TAG=$prev_tag" >> "$GITHUB_OUTPUT"
48
+ echo "CURRENT_TAG=$current_tag" >> "$GITHUB_OUTPUT"
49
50
- name: Set nightly enabled
51
id: nightly-check
@@ -120,4 +122,4 @@ jobs:
120
122
COSIGN_YES: true
121
123
SKIP_SIGNS: false
124
GORELEASER_PREVIOUS_TAG: ${{ steps.prev-tag.outputs.PREVIOUS_RELEASE_TAG }}
- GORELEASER_CURRENT_TAG: ${{ github.ref_name }}
125
+ GORELEASER_CURRENT_TAG: ${{ steps.prev-tag.outputs.CURRENT_TAG }}
0 commit comments