Skip to content

Commit

Permalink
Pre-empt the next PR
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveGilham committed Dec 18, 2023
1 parent 1f0ac01 commit 1be0d6b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
9 changes: 2 additions & 7 deletions Build/actions.fs
Original file line number Diff line number Diff line change
Expand Up @@ -401,16 +401,11 @@ using System.Runtime.CompilerServices;
let AssertResult (msg: string) (result: Fake.Core.ProcessResult<'a>) =
Assert.That(result.ExitCode, Is.EqualTo 0, msg)

let Run (file, dir, (args:string seq)) msg =
let Run (file, dir, (args: string seq)) msg =
printfn "Actions.Run %A on %A with %A" file dir args
args |> Seq.iter (printfn "%A")

CreateProcess.fromRawCommand
file
(if isNull args then
Seq.empty<string>
else
args)
CreateProcess.fromRawCommand file args
|> CreateProcess.withWorkingDirectory dir
|> CreateProcess.withFramework
|> Proc.run
Expand Down
11 changes: 7 additions & 4 deletions Build/targets.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1544,10 +1544,13 @@ module Targets =

if
Environment.isWindows
&& "GITHUB_RUN_NUMBER"
|> (Environment.environVar
>> String.IsNullOrWhiteSpace
>> not)
&& [ "GITHUB_RUN_NUMBER"
"COVERALLS_REPO_TOKEN" ]
|> List.forall (
Environment.environVar
>> String.IsNullOrWhiteSpace
>> not
)
then
let maybe envvar fallback =
let x = Environment.environVar envvar
Expand Down

0 comments on commit 1be0d6b

Please sign in to comment.