File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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+
5153with 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 ==============================================" )
You can’t perform that action at this time.
0 commit comments