File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed
Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 3333 " mostrado" ,
3434 " página" ,
3535 " Texto" ,
36- " creatordate"
36+ " creatordate" ,
37+ " retag"
3738 ]
3839}
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Updates the "v1" tag to point to a newer release.
4+ # To be executed whenever a new 1.x tag is created.
5+ # Usage: ./retag_v1.sh <newer-existing-version>
6+
7+ currentBranch=$( git symbolic-ref --short -q HEAD)
8+ if [[ ! $currentBranch == " main" ]]; then
9+ echo " Re-tagging is only supported on the main branch."
10+ exit 1
11+ fi
12+
13+ # Get new version
14+ new_version=" $1 " ;
15+
16+ if [[ " $new_version " == " " ]]; then
17+ echo " No new version supplied, please provide one"
18+ exit 1
19+ fi
20+
21+ git tag -d v1 && git tag v1 v$new_version && git push origin --delete v1 && git push origin v1
You can’t perform that action at this time.
0 commit comments