Skip to content

Commit

Permalink
Post-release 7.0 merge to master (#6836)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulb777 authored and schmidt-sebastian committed Oct 29, 2020
1 parent bc9d3aa commit d4f4b8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ReleaseTooling/Sources/FirebaseReleaser/Tags.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ import Utils

enum Tags {
static func createTags(gitRoot: URL, deleteExistingTags: Bool = false) {
if deleteExistingTags {
verifyTagsAreSafeToDelete(gitRoot: gitRoot)
}
let manifest = FirebaseManifest.shared
createTag(gitRoot: gitRoot, tag: "CocoaPods-\(manifest.version)",
deleteExistingTags: deleteExistingTags)
Expand All @@ -45,7 +48,6 @@ enum Tags {

private static func createTag(gitRoot: URL, tag: String, deleteExistingTags: Bool) {
if deleteExistingTags {
verifyTagsAreSafeToDelete(gitRoot: gitRoot)
Shell.executeCommand("git tag --delete \(tag)", workingDir: gitRoot)
Shell.executeCommand("git push --delete origin \(tag)", workingDir: gitRoot)
} else {
Expand Down

0 comments on commit d4f4b8f

Please sign in to comment.