mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 10:27:00 +02:00
.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.
This commit is contained in:
parent
a5ef692fd1
commit
4e9d98cc60
@ -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; \
|
||||
|
Loading…
Reference in New Issue
Block a user