From c535a6808b9c06261cbe563f29a23bd0ab873d4b Mon Sep 17 00:00:00 2001 From: Benjamin Sherman Date: Mon, 29 Jul 2024 17:16:15 -0500 Subject: [PATCH] fix(ci): version sort copr provided kernels (#22) We need to version sort the kernels we pull from COPR so that we can reliably find the newest version. --- .github/workflows/reusable-build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/reusable-build.yml b/.github/workflows/reusable-build.yml index b5beb4a..98f6f30 100644 --- a/.github/workflows/reusable-build.yml +++ b/.github/workflows/reusable-build.yml @@ -76,15 +76,15 @@ jobs: case ${{ matrix.kernel_flavor }} in "asus") $dnf copr enable -y lukenukem/asus-kernel - linux=$($dnf repoquery --repoid copr:copr.fedorainfracloud.org:lukenukem:asus-kernel --whatprovides kernel | tail -n1 | sed 's/.*://') + linux=$($dnf repoquery --repoid copr:copr.fedorainfracloud.org:lukenukem:asus-kernel --whatprovides kernel | sort -V | tail -n1 | sed 's/.*://') ;; "fsync") $dnf copr enable -y sentry/kernel-fsync - linux=$($dnf repoquery --repoid copr:copr.fedorainfracloud.org:sentry:kernel-fsync --whatprovides kernel | tail -n1 | sed 's/.*://') + linux=$($dnf repoquery --repoid copr:copr.fedorainfracloud.org:sentry:kernel-fsync --whatprovides kernel | sort -V | tail -n1 | sed 's/.*://') ;; "surface") $dnf config-manager --add-repo=https://pkg.surfacelinux.com/fedora/linux-surface.repo - linux=$($dnf repoquery --repoid linux-surface --whatprovides kernel-surface | tail -n1 | sed 's/.*://') + linux=$($dnf repoquery --repoid linux-surface --whatprovides kernel-surface | sort -V | tail -n1 | sed 's/.*://') ;; "main") linux=$(skopeo inspect docker://quay.io/fedora-ostree-desktops/base:${{ matrix.fedora_version }} | jq -r '.Labels["ostree.linux"]' )