Skip to content

Commit 8f7d370

Browse files
committed
apparently the GITHUB_CI environment variable doesn't exist anymore? i guess CI + GITHUB_ACTION will have to do.
1 parent ae05a14 commit 8f7d370

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bork/trusted_publishing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class GithubTrustedPublishing(TrustedPublishingProvider):
6666
@staticmethod
6767
def detected():
6868
"""Are we running on GitHub CI?"""
69-
return bool(os.environ.get("GITHUB_CI"))
69+
return bool(os.environ.get("CI") and os.environ.get("GITHUB_ACTION"))
7070

7171
def get_ambient_credential(self):
7272
token = os.environ("ACTIONS_ID_TOKEN_REQUEST_TOKEN")

0 commit comments

Comments
 (0)