Skip to content

Commit 6d4e1e7

Browse files
committed
forge tagging
1 parent a4fb8cc commit 6d4e1e7

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,8 @@ jobs:
3535
3636
TAG_NAME="${{ inputs.tag }}"
3737
38-
# Check if tag exists in the fetched history
39-
if git rev-parse "refs/tags/$TAG_NAME" >/dev/null 2>&1; then
40-
echo "Tag $TAG_NAME exists"
41-
else
42-
echo "Tag $TAG_NAME does not exist. creating it on current HEAD..."
43-
git tag "$TAG_NAME"
44-
fi
38+
echo "Force aligning tag $TAG_NAME to current HEAD..."
39+
git tag -f "$TAG_NAME"
4540
4641
- name: Set up Go 1.x
4742
uses: actions/setup-go@v5

0 commit comments

Comments
 (0)