From c4c6d625ec56c8927647ecf99a3bc9b82cab41da Mon Sep 17 00:00:00 2001 From: smorihira Date: Wed, 4 Sep 2024 18:43:02 +0900 Subject: [PATCH] fix: fix build platforms in generateWorkflowStruct --- hack/actions/gen/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hack/actions/gen/main.go b/hack/actions/gen/main.go index 8a60ef75f9e..8fe7911daff 100644 --- a/hack/actions/gen/main.go +++ b/hack/actions/gen/main.go @@ -279,12 +279,14 @@ func generateWorkflowStruct(data *Data) Workflow { workflow.On.PullRequestTarget.Paths = data.PullRequestTargetPaths workflow.Jobs.Build.Uses = data.BuildUses workflow.Jobs.Build.With.Target = data.BuildTarget - workflow.Jobs.Build.With.Platforms = data.BuildPlatforms workflow.Jobs.Build.Secrets = data.BuildSecrets if data.Cron != "" { workflow.On.Schedule.Cron = data.Cron } + if data.BuildPlatforms != "" { + workflow.Jobs.Build.With.Platforms = data.BuildPlatforms + } return workflow }