Skip to content

Commit 6cc8710

Browse files
fix: make sure to only match the tag specified (#1779)
Signed-off-by: matttrach <[email protected]> Co-authored-by: Matt Trachier <[email protected]>
1 parent ee9311f commit 6cc8710

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/manual-rc-release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ jobs:
5757
with:
5858
ref: ${{ inputs.tag }}
5959
path: ${{ github.workspace }}/tags/${{ inputs.tag }}
60+
- run: |
61+
# remove any tags that are not the one specified (to avoid goreleaser confusion)
62+
DIR="$(pwd)"
63+
cd "${{ github.workspace }}/tags/${{ inputs.tag }}"
64+
git tag | grep -v -e "^${{ inputs.tag }}$" | xargs git tag -d
65+
cd "$DIR"
6066
- name: retrieve GPG Credentials
6167
id: retrieve-gpg-credentials
6268
uses: rancher-eio/read-vault-secrets@main

.github/workflows/manual-release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ jobs:
5757
path: ${{ github.workspace }}/tags/${{ inputs.tag }}
5858
- run: |
5959
# remove any tags that are not the one specified (to avoid goreleaser confusion)
60+
DIR="$(pwd)"
6061
cd "${{ github.workspace }}/tags/${{ inputs.tag }}"
61-
git tag | grep -v "${{ inputs.tag }}" | xargs git tag -d
62-
cd ../../
62+
git tag | grep -v -e "^${{ inputs.tag }}$" | xargs git tag -d
63+
cd "$DIR"
6364
- name: retrieve GPG Credentials
6465
id: retrieve-gpg-credentials
6566
uses: rancher-eio/read-vault-secrets@main

0 commit comments

Comments
 (0)