Skip to content

Commit

Permalink
fix: fix build platforms in generateWorkflowStruct
Browse files Browse the repository at this point in the history
  • Loading branch information
smorihira committed Sep 4, 2024
1 parent db8d4bc commit c4c6d62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hack/actions/gen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit c4c6d62

Please sign in to comment.