diff --git a/.github/workflows/go-module-bump.yaml b/.github/workflows/go-module-bump.yaml index 492e0dce..eb75bfe6 100644 --- a/.github/workflows/go-module-bump.yaml +++ b/.github/workflows/go-module-bump.yaml @@ -22,116 +22,116 @@ jobs: include: - repo: backstage-plugins branch: release-v1.12 - postUpdateCmd: make generated-files + postUpdateCmd: make generate-release - repo: backstage-plugins branch: release-v1.14 - postUpdateCmd: make generated-files + postUpdateCmd: make generate-release - repo: backstage-plugins branch: release-v1.15 - postUpdateCmd: make generated-files + postUpdateCmd: make generate-release - repo: backstage-plugins branch: release-v1.16 - postUpdateCmd: make generated-files + postUpdateCmd: make generate-release - repo: client branch: release-v1.15 - postUpdateCmd: make generated-files + postUpdateCmd: make generate-release - repo: client branch: release-v1.16 - postUpdateCmd: make generated-files + postUpdateCmd: make generate-release - repo: eventing-hyperfoil-benchmark branch: main - postUpdateCmd: make generated-files + postUpdateCmd: make generate-release - repo: eventing-istio branch: release-v1.12 - postUpdateCmd: make generated-files + postUpdateCmd: make generate-release - repo: eventing-istio branch: release-v1.14 - postUpdateCmd: make generated-files + postUpdateCmd: make generate-release - repo: eventing-istio branch: release-v1.15 - postUpdateCmd: make generated-files + postUpdateCmd: make generate-release - repo: eventing-istio branch: release-v1.16 - postUpdateCmd: make generated-files + postUpdateCmd: make generate-release - repo: eventing-kafka-broker branch: release-v1.12 - postUpdateCmd: make generated-files + postUpdateCmd: make generate-release - repo: eventing-kafka-broker branch: release-v1.14 - postUpdateCmd: make generated-files + postUpdateCmd: make generate-release - repo: eventing-kafka-broker branch: release-v1.15 - postUpdateCmd: make generated-files + postUpdateCmd: make generate-release - repo: eventing-kafka-broker branch: release-v1.16 - postUpdateCmd: make generated-files + postUpdateCmd: make generate-release - repo: eventing branch: release-v1.12 - postUpdateCmd: make generated-files + postUpdateCmd: make generate-release - repo: eventing branch: release-v1.14 - postUpdateCmd: make generated-files + postUpdateCmd: make generate-release - repo: eventing branch: release-v1.15 - postUpdateCmd: make generated-files + postUpdateCmd: make generate-release - repo: eventing branch: release-v1.16 - postUpdateCmd: make generated-files + postUpdateCmd: make generate-release - repo: kn-plugin-event branch: release-1.15 - repo: kn-plugin-event branch: release-1.16 - - repo: kn-plugin-func - branch: serverless-1.34 - repo: kn-plugin-func branch: release-v1.15 - repo: kn-plugin-func branch: release-v1.16 + - repo: kn-plugin-func + branch: serverless-1.34 - repo: serverless-operator branch: main - postUpdateCmd: make generate-release + postUpdateCmd: make generated-files - repo: serverless-operator branch: release-1.35 - postUpdateCmd: make generate-release + postUpdateCmd: make generated-files - repo: serverless-operator branch: release-1.36 - postUpdateCmd: make generate-release + postUpdateCmd: make generated-files - repo: net-istio branch: release-v1.12 - postUpdateCmd: make generated-files + postUpdateCmd: make generate-release - repo: net-istio branch: release-v1.14 - postUpdateCmd: make generated-files + postUpdateCmd: make generate-release - repo: net-istio branch: release-v1.15 - postUpdateCmd: make generated-files + postUpdateCmd: make generate-release - repo: net-istio branch: release-v1.16 - postUpdateCmd: make generated-files + postUpdateCmd: make generate-release - repo: net-kourier branch: release-v1.12 - postUpdateCmd: make generated-files + postUpdateCmd: make generate-release - repo: net-kourier branch: release-v1.14 - postUpdateCmd: make generated-files + postUpdateCmd: make generate-release - repo: net-kourier branch: release-v1.15 - postUpdateCmd: make generated-files + postUpdateCmd: make generate-release - repo: net-kourier branch: release-v1.16 - postUpdateCmd: make generated-files + postUpdateCmd: make generate-release - repo: serving branch: release-v1.12 - postUpdateCmd: make generated-files + postUpdateCmd: make generate-release - repo: serving branch: release-v1.14 - postUpdateCmd: make generated-files + postUpdateCmd: make generate-release - repo: serving branch: release-v1.15 - postUpdateCmd: make generated-files + postUpdateCmd: make generate-release - repo: serving branch: release-v1.16 - postUpdateCmd: make generated-files + postUpdateCmd: make generate-release steps: - name: Configure Git user run: | diff --git a/pkg/action/go_mod_bump_action.go b/pkg/action/go_mod_bump_action.go index 983612df..9850181f 100644 --- a/pkg/action/go_mod_bump_action.go +++ b/pkg/action/go_mod_bump_action.go @@ -50,7 +50,8 @@ func GoModuleBumpAction(ctx context.Context, cfg Config) error { } for _, repo := range inConfig.Repositories { - for branchName := range inConfig.Config.Branches { + sortedBranches := sortedKeys(inConfig.Config.Branches) + for _, branchName := range sortedBranches { if branchName == "release-next" { continue @@ -59,13 +60,7 @@ func GoModuleBumpAction(ctx context.Context, cfg Config) error { repoConfig := BumpRepoConfig{ Repo: repo.Repo, Branch: branchName, - PostUpdateCmd: "make generated-files", - } - - if repo.IsServerlessOperator() { - repoConfig.PostUpdateCmd = "make generate-release" - } else if repo.IsFunc() || repo.IsEventPlugin() { - repoConfig.PostUpdateCmd = "" + PostUpdateCmd: repo.RunCodegenCommand(), } repoConfigs = append(repoConfigs, repoConfig)