Do not attempt to get JOB_ID on wrong RUN_ID

This commit is contained in:
Mikhail f. Shiryaev 2023-01-09 21:46:33 +01:00
parent 5b45360c89
commit f2004aee72
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -39,6 +39,8 @@ _GITHUB_JOB_URL = ""
def GITHUB_JOB_ID() -> str:
global _GITHUB_JOB_ID
global _GITHUB_JOB_URL
if GITHUB_RUN_ID == "0":
_GITHUB_JOB_ID = "0"
if _GITHUB_JOB_ID:
return _GITHUB_JOB_ID
jobs = []