-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: add rettag script * rename * docs * spell
- Loading branch information
1 parent
3ab53d9
commit e29f881
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,7 @@ | |
"mostrado", | ||
"página", | ||
"Texto", | ||
"creatordate" | ||
"creatordate", | ||
"retag" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
# Updates the "v1" tag to point to a newer release. | ||
# To be executed whenever a new 1.x tag is created. | ||
# Usage: ./retag_v1.sh <newer-existing-version> | ||
|
||
currentBranch=$(git symbolic-ref --short -q HEAD) | ||
if [[ ! $currentBranch == "main" ]]; then | ||
echo "Re-tagging is only supported on the main branch." | ||
exit 1 | ||
fi | ||
|
||
# Get new version | ||
new_version="$1"; | ||
|
||
if [[ "$new_version" == "" ]]; then | ||
echo "No new version supplied, please provide one" | ||
exit 1 | ||
fi | ||
|
||
git tag -d v1 && git tag v1 v$new_version && git push origin --delete v1 && git push origin v1 |