From fd0d263cedab1a136f40d65199987e3eaeecfcbd Mon Sep 17 00:00:00 2001 From: Hans Kristian Rosbach Date: Mon, 17 Mar 2025 16:29:01 +0100 Subject: [PATCH] [CI] Instead of selecting the most recent tag, select the highest version number. --- arch/s390/self-hosted-builder/actions-runner.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/s390/self-hosted-builder/actions-runner.Dockerfile b/arch/s390/self-hosted-builder/actions-runner.Dockerfile index 6a16b9f3..1a9c3a4e 100644 --- a/arch/s390/self-hosted-builder/actions-runner.Dockerfile +++ b/arch/s390/self-hosted-builder/actions-runner.Dockerfile @@ -14,7 +14,7 @@ RUN dnf install -y -q dotnet-sdk-8.0 && \ RUN cd /tmp && \ git clone -q https://github.com/actions/runner && \ cd runner && \ - git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) -b build && \ + git checkout $(git tag | grep "^v[0-9]\+\.[0-9]\+\.[0-9]\+$" | sort -V | tail -1) -b build && \ wget https://github.com/anup-kodlekere/gaplib/raw/refs/heads/main/patches/runner-main-sdk8-s390x.patch -O runner-sdk-8.patch && \ git apply runner-sdk-8.patch && \ sed -i'' -e /version/s/8......\"$/$8.0.100\"/ src/global.json