diff --git a/ci/integration/logging/run_bridge.sh b/ci/integration/logging/run_bridge.sh index 59edfa7a..30b94fc8 100644 --- a/ci/integration/logging/run_bridge.sh +++ b/ci/integration/logging/run_bridge.sh @@ -11,7 +11,7 @@ sed -i 's/gpgcheck=1/gpgcheck=0/g' /etc/yum.repos.d/CentOS-OpsTools.repo dnf install -y git gcc make qpid-proton-c-devel redhat-rpm-config # install and start sg-bridge -BRANCH="$(echo ${GITHUB_REF#refs/heads/})" +BRANCH="$(echo "refs/heads/${GITHUB_HEAD_REF}")" git clone https://github.com/infrawatch/sg-bridge.git pushd sg-bridge git checkout $BRANCH || true diff --git a/ci/integration/metrics/run_bridge.sh b/ci/integration/metrics/run_bridge.sh index 0c73d1da..f28c2dea 100644 --- a/ci/integration/metrics/run_bridge.sh +++ b/ci/integration/metrics/run_bridge.sh @@ -13,7 +13,7 @@ sed -i 's/gpgcheck=1/gpgcheck=0/g' /etc/yum.repos.d/CentOS-OpsTools.repo dnf install -y git gcc make qpid-proton-c-devel redhat-rpm-config # install and start sg-bridge -BRANCH="$(echo ${GITHUB_REF#refs/heads/})" +BRANCH="$(echo "refs/heads/${GITHUB_HEAD_REF}")" git clone https://github.com/infrawatch/sg-bridge.git pushd sg-bridge git checkout $BRANCH || true