Merge pull request #11683 from kata-containers/sprt/static-checks-default-branch

ci: static-checks: Don't hardcode default repo branch
This commit is contained in:
Aurélien Bombo 2025-08-14 17:01:18 -05:00 committed by GitHub
commit 3a5e2060aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,7 +28,7 @@ KATA_HYPERVISOR="${KATA_HYPERVISOR:-qemu}"
RUNTIME="${RUNTIME:-containerd-shim-kata-v2}" 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() { function die() {
local msg="$*" local msg="$*"