Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post-release 7.0 merge to master #6836

Merged
merged 10 commits into from
Oct 26, 2020
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