diff --git a/main.go b/main.go index 9b01911b..60471342 100644 --- a/main.go +++ b/main.go @@ -185,9 +185,9 @@ func main() { branchFlag := cli.StringFlag{ Name: "branch,b", Usage: `Usage: - ./bin/charts-build-scripts --branch="release-v2.y" - BRANCH="release-v2.y" make - Available branches for release: (release-v2.8; release-v2.9; release-v2.10...) + ./bin/charts-build-scripts --branch="release-v2.y" OR + BRANCH="dev-v2.y" make + Available branches: (release-v2.8; dev-v2.9; release-v2.10.) `, Required: true, EnvVar: defaultBranchEnvironmentVariable, @@ -386,11 +386,12 @@ func main() { Flags: []cli.Flag{branchFlag}, }, { - Name: "auto-chart-bump", + Name: "chart-bump", Usage: `Generate a new chart bump PR. `, - Action: autoChartBump, - Flags: []cli.Flag{branchFlag}, + Action: chartBump, + Before: setupCache, + Flags: []cli.Flag{packageFlag, branchFlag}, }, } @@ -399,10 +400,6 @@ func main() { } } -func autoChartBump(c *cli.Context) { - -} - func listPackages(c *cli.Context) { repoRoot := getRepoRoot() packageList, err := charts.ListPackages(repoRoot, CurrentPackage)