From 77b21017bc585fe77527fcf6580d175894098f52 Mon Sep 17 00:00:00 2001 From: David Mears Date: Fri, 2 Aug 2024 12:46:56 +0100 Subject: [PATCH] Ensure dependency services can find git branch name on CI environment --- db/scripts/common | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db/scripts/common b/db/scripts/common index 22b7dc7a..1be5c058 100644 --- a/db/scripts/common +++ b/db/scripts/common @@ -9,6 +9,8 @@ fi if [[ -v "BRANCH_NAME" ]]; then GIT_BRANCH=${BRANCH_NAME} +elif [[ -v "GITHUB_HEAD_REF" ]]; then + GIT_BRANCH=${GITHUB_HEAD_REF} else GIT_BRANCH=$(git symbolic-ref --short HEAD) fi