mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-30 23:37:45 +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:
parent
dcb62a7f91
commit
0fa7d5b293
@ -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="$*"
|
||||
|
Loading…
Reference in New Issue
Block a user