add script to overwrite tag
This commit is contained in:
parent
37f9f7c85a
commit
6879e62cff
1 changed files with 12 additions and 0 deletions
12
overwrite_tag.sh
Executable file
12
overwrite_tag.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Set TAG to $1 if provided and not empty, otherwise default to "v1"
|
||||
TAG="${1:-v1}"
|
||||
|
||||
echo "Updating tag: $TAG"
|
||||
|
||||
# Force-update the tag locally
|
||||
git tag -fa "$TAG" -m "Updating $TAG to include latest changes"
|
||||
|
||||
# Force-push the updated tag to the remote repository
|
||||
git push origin "$TAG" --force
|
||||
Loading…
Add table
Add a link
Reference in a new issue