Skip to content

Commit

Permalink
fix: path resolution on src/Program.fs
Browse files Browse the repository at this point in the history
  • Loading branch information
64J0 committed Jun 19, 2024
1 parent e49030c commit afae504
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ type RETURN_CODE =
| SUCCESS = 0
| FAIL = 1

let getWorkflowNewPath () =
Path.Combine [| Directory.GetCurrentDirectory(); "workflow.new.yml" |]

type Workflow = YamlConfig<"workflow.temp.yml">

let handleMainResult (mainResult: Result<string, string>) : int =
Expand All @@ -55,7 +58,7 @@ let main (args: string array) : int =

let workflow = Workflow()

let workflowNewPath = __SOURCE_DIRECTORY__ + "/workflow.new.yml"
let workflowNewPath = getWorkflowNewPath ()

result {
let! valuesToTake = GitHubHelpers.getValuesToTake ()
Expand Down

0 comments on commit afae504

Please sign in to comment.