mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-01 08:56:32 +00:00
ci: static-checks: Don't hardcode default repo branch
This would cause weird issues for downstreams which default branch is not "main". Signed-off-by: Aurélien Bombo <abombo@microsoft.com>
This commit is contained in:
@@ -28,7 +28,7 @@ KATA_HYPERVISOR="${KATA_HYPERVISOR:-qemu}"
|
||||
|
||||
RUNTIME="${RUNTIME:-containerd-shim-kata-v2}"
|
||||
|
||||
export branch="${target_branch:-main}"
|
||||
export branch="${target_branch:-"$(git remote show origin | sed -n '/HEAD branch/s/.*: //p')"}"
|
||||
|
||||
function die() {
|
||||
local msg="$*"
|
||||
|
Reference in New Issue
Block a user