Skip to content

Commit a3b1f7e

Browse files
committed
fix release
1 parent 122520f commit a3b1f7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fcs/build.fsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ Target.create "ValidateVersionBump" (fun _ ->
158158

159159
Target.create "CreateRelease" (fun _ ->
160160
async {
161-
let client = GitHub.createClientWithToken (Environment.environVarOrDefault "GITHUB_TOKEN" (UserInput.getUserPassword "Github API Token: "))
161+
let client = GitHub.createClientWithToken (Environment.environVarOrNone "GITHUB_TOKEN" |> Option.defaultWith (fun _ -> UserInput.getUserPassword "Github API Token: "))
162162
let currentSha = Git.Information.getCurrentSHA1 ""
163163
let releaseParams (input: GitHub.CreateReleaseParams) =
164164
{ input with

0 commit comments

Comments
 (0)