Skip to content

Commit 90a19fe

Browse files
committed
Trying to fix smoke test
1 parent 3693f10 commit 90a19fe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

smoke_test.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,11 @@ def is_running_on_actions() -> bool:
4545
# See the following document on which environ to use for this purpose.
4646
# https://docs.github.com/en/free-pro-team@latest/actions/reference/environment-variables#default-environment-variables
4747

48-
return os.environ.get("GITHUB_ACTIONS") == "true"
48+
return "GITHUB_ACTIONS" in os.environ
4949

5050

51+
print(f"Running in GitHub Actions: {is_running_on_actions()}")
52+
5153
with tempfile.TemporaryDirectory() as tmpdir:
5254
tmpdir_p = PathPlus(tmpdir)
5355

@@ -92,6 +94,7 @@ def is_running_on_actions() -> bool:
9294

9395
target_dir = tmpdir_p / f"{username}_{repository}"
9496
url = GITHUB_COM / username / repository
97+
9598
if is_running_on_actions():
9699
print(f"::group::{username}_{repository}")
97100
print("\n\n==============================================")

0 commit comments

Comments
 (0)