Skip to content

Commit afae504

Browse files
committed
fix: path resolution on src/Program.fs
1 parent e49030c commit afae504

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Program.fs

+4-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ type RETURN_CODE =
3838
| SUCCESS = 0
3939
| FAIL = 1
4040

41+
let getWorkflowNewPath () =
42+
Path.Combine [| Directory.GetCurrentDirectory(); "workflow.new.yml" |]
43+
4144
type Workflow = YamlConfig<"workflow.temp.yml">
4245

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

5659
let workflow = Workflow()
5760

58-
let workflowNewPath = __SOURCE_DIRECTORY__ + "/workflow.new.yml"
61+
let workflowNewPath = getWorkflowNewPath ()
5962

6063
result {
6164
let! valuesToTake = GitHubHelpers.getValuesToTake ()

0 commit comments

Comments
 (0)