Skip to content

Commit

Permalink
chore: update version to 2.9-2023.12.06-c79b7d547
Browse files Browse the repository at this point in the history
  • Loading branch information
pasha-codefresh committed Dec 6, 2023
1 parent c79b7d5 commit 19938bb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.9-2023.12.06-e6258156d
2.9-2023.12.06-c79b7d547
14 changes: 9 additions & 5 deletions hack/release/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ func release() error {
fmt.Printf("Changelog: %s\n", changelog)
release := fmt.Sprintf("release-v%s", version)
fmt.Printf("Release: %s\n", release)
err = moveChangelog()
if err != nil {
return err
}
err = commitChanges(version)
if err != nil {
return err
}
// git tag -a v2.9.3-2021.07.07-3a4b7f4 -m "Codefresh version for synced 2.9.3"
_ = exec.Command("git", "tag", "-d", release).Run()
cmd := exec.Command("git", "tag", "-a", release, "-m", changelog)
Expand All @@ -124,10 +132,6 @@ func release() error {
if err := cmd.Run(); err != nil {
return err
}
err = moveChangelog()
if err != nil {
return err
}
return exec.Command("git", "push", "origin", "--delete", release).Run()
}

Expand All @@ -143,7 +147,7 @@ func commitChanges(version string) error {
return err
}

cmd = exec.Command("git", "commit", fmt.Sprintf("chore: update version to %s", version))
cmd = exec.Command("git", "commit", "-a", "-m", fmt.Sprintf("chore: update version to %s", version))
if err := cmd.Run(); err != nil {
return err
}
Expand Down

0 comments on commit 19938bb

Please sign in to comment.