Skip to content

Commit

Permalink
is_github_workflow - kamangir/bolt#746
Browse files Browse the repository at this point in the history
  • Loading branch information
kamangir committed Apr 7, 2024
1 parent 91ef713 commit a665a5a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion abcli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

NAME = "abcli"

VERSION = "7.2963.1"
VERSION = "7.2964.1"

DESCRIPTION = "🚀 a language to speak AI."

Expand Down
4 changes: 4 additions & 0 deletions abcli/modules/host/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ def is_ec2():
return os.getenv("abcli_is_ec2", "false") == "true"


def is_github_workflow():
return os.getenv("abcli_is_github_workflow", "false") == "true"


def is_headless():
return os.getenv("abcli_is_headless", "false") == "true"

Expand Down
1 change: 1 addition & 0 deletions abcli/plugins/graphics/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
elif (
not host.is_ec2()
and not host.is_docker()
and not host.is_github_workflow()
and not host.is_jupyter()
and not host.is_aws_batch()
):
Expand Down
1 change: 1 addition & 0 deletions bash/bootstrap/system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export abcli_is_amazon_linux=false
export abcli_is_cloudshell=false
export abcli_is_docker=false
export abcli_is_ec2=false
export abcli_is_github_workflow=false
export abcli_is_jetson=false
export abcli_is_headless=false
export abcli_is_mac=false
Expand Down

0 comments on commit a665a5a

Please sign in to comment.