Add base SHA to printout (#297)

Co-authored-by: UltralyticsAssistant <[email protected]>
This commit is contained in:
Glenn Jocher
2024-11-28 19:18:21 +01:00
committed by GitHub
co-authored by UltralyticsAssistant
parent edb4e5ef0d
commit eabe79a79e
+1
View File
@@ -111,6 +111,7 @@ def ultralytics_actions_info():
"github.ref": os.environ.get("GITHUB_REF"),
"github.head_ref": os.environ.get("GITHUB_HEAD_REF"),
"github.base_ref": os.environ.get("GITHUB_BASE_REF"),
"github.base_sha": PR.get("base", {}).get("sha"),
}
if GITHUB_EVENT_NAME == "discussion":