Skip to content

Commit d90fa30

Browse files
committed
use correct function to check for CI
1 parent 6c51b61 commit d90fa30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/github.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Copyright (C) 2020-2022 Posit Software, PBC
55
*/
66

7+
import { runningInCI } from "../core/ci-info.ts";
78
import { GitHubRelease } from "./types.ts";
89

910
// deno-lint-ignore-file camelcase
@@ -49,8 +50,7 @@ function githubActionsWorkflowCommand(
4950
}
5051

5152
export async function group<T>(title: string, fn: () => Promise<T>) {
52-
Deno.env.get("CI");
53-
if (!Deno.env.get("CI")) {
53+
if (!runningInCI()) {
5454
return fn();
5555
}
5656
console.log(githubActionsWorkflowCommand("group", title));

0 commit comments

Comments
 (0)