refactor(build): centralise release workflow directory handling
Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
5e592bf0e0
commit
bb46675131
1 changed files with 0 additions and 8 deletions
|
|
@ -158,10 +158,6 @@ func runReleaseWorkflow(_ context.Context, inputs releaseWorkflowInputs) error {
|
|||
return err
|
||||
}
|
||||
|
||||
if err := io.Local.EnsureDir(ax.Dir(resolvedWorkflowPath)); err != nil {
|
||||
return coreerr.E("build.runReleaseWorkflowInDir", "failed to create release workflow directory", err)
|
||||
}
|
||||
|
||||
return build.WriteReleaseWorkflow(io.Local, resolvedWorkflowPath)
|
||||
}
|
||||
|
||||
|
|
@ -217,9 +213,5 @@ func runReleaseWorkflowInDir(projectDir, workflowPathInput, workflowOutputPathIn
|
|||
return err
|
||||
}
|
||||
|
||||
if err := io.Local.EnsureDir(ax.Dir(resolvedPath)); err != nil {
|
||||
return coreerr.E("build.runReleaseWorkflowInDir", "failed to create release workflow directory", err)
|
||||
}
|
||||
|
||||
return build.WriteReleaseWorkflow(io.Local, resolvedPath)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue