[CI] Instead of selecting the most recent tag, select the highest version number.

This commit is contained in:
Hans Kristian Rosbach 2025-03-17 16:29:01 +01:00 committed by Hans Kristian Rosbach
parent 89f90d3e9c
commit fd0d263ced

View File

@ -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