File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
ReleaseTooling/Sources/FirebaseReleaser Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ import Utils
21
21
22
22
enum Tags {
23
23
static func createTags( gitRoot: URL , deleteExistingTags: Bool = false ) {
24
+ if deleteExistingTags {
25
+ verifyTagsAreSafeToDelete ( gitRoot: gitRoot)
26
+ }
24
27
let manifest = FirebaseManifest . shared
25
28
createTag ( gitRoot: gitRoot, tag: " CocoaPods- \( manifest. version) " ,
26
29
deleteExistingTags: deleteExistingTags)
@@ -45,7 +48,6 @@ enum Tags {
45
48
46
49
private static func createTag( gitRoot: URL , tag: String , deleteExistingTags: Bool ) {
47
50
if deleteExistingTags {
48
- verifyTagsAreSafeToDelete ( gitRoot: gitRoot)
49
51
Shell . executeCommand ( " git tag --delete \( tag) " , workingDir: gitRoot)
50
52
Shell . executeCommand ( " git push --delete origin \( tag) " , workingDir: gitRoot)
51
53
} else {
You can’t perform that action at this time.
0 commit comments