From 4e9d98cc60b95c80371094df0fe0e4ea11a4d8da Mon Sep 17 00:00:00 2001 From: Dongsu Park Date: Mon, 9 Mar 2020 10:17:00 +0100 Subject: [PATCH] .github: do not fail if the release is already the latest Kernel If the current Flatcar release is already the latest Kernel, we should simply exit with 0, without giving a failure status 1. The `exit 1` would the otherwise result in a failure of the entire Github actions. --- .../coreos-overlay/.github/workflows/kernel-apply-patch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk_container/src/third_party/coreos-overlay/.github/workflows/kernel-apply-patch.sh b/sdk_container/src/third_party/coreos-overlay/.github/workflows/kernel-apply-patch.sh index cd98cb61ee..c37d692bc5 100755 --- a/sdk_container/src/third_party/coreos-overlay/.github/workflows/kernel-apply-patch.sh +++ b/sdk_container/src/third_party/coreos-overlay/.github/workflows/kernel-apply-patch.sh @@ -8,7 +8,7 @@ pushd ~/flatcar-sdk/src/third_party/coreos-overlay || exit git checkout -B "${branch}" "github/${BASE_BRANCH}" versionOld=$(sed -n "s/^DIST patch-\(${KERNEL_VERSION}.[0-9]*\).*/\1/p" sys-kernel/coreos-sources/Manifest) -[[ "${VERSION_NEW}" = "$versionOld" ]] && echo "already the latest Kernel, nothing to do" && exit 1 +[[ "${VERSION_NEW}" = "$versionOld" ]] && echo "already the latest Kernel, nothing to do" && exit for pkg in sources modules kernel; do \ pushd "sys-kernel/coreos-${pkg}" >/dev/null || exit; \