Skip to content

Commit

Permalink
use workflow from project setting (#1841)
Browse files Browse the repository at this point in the history
  • Loading branch information
motatoes authored Nov 22, 2024
1 parent cd86752 commit ac2fcb2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
14 changes: 7 additions & 7 deletions next/dbmodels/projects.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ import (

func ToDiggerProject(p *model.Project) digger_config.Project {
return digger_config.Project{
Name: p.Name,
Dir: p.TerraformWorkingDir,
Workspace: func() string {
Name: p.Name,
Dir: p.TerraformWorkingDir,
Workspace: func() string {
if p.Workspace == "" {
return "default"
}
return p.Workspace
}(),
Terragrunt: (p.IacType == "terragrunt"),
OpenTofu: (p.IacType == "opentofu"),
Workflow: "default",
WorkflowFile: func() string {
Terragrunt: (p.IacType == "terragrunt"),
OpenTofu: (p.IacType == "opentofu"),
Workflow: p.Workflow,
WorkflowFile: func() string {
if p.WorkflowFile == "" {
return "digger_workflow.yml"
}
Expand Down
1 change: 1 addition & 0 deletions next/model/projects.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion next/models_generated/projects.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ac2fcb2

Please sign in to comment.