Skip to content

Commit fd0d263

Browse files
committed
[CI] Instead of selecting the most recent tag, select the highest version number.
1 parent 89f90d3 commit fd0d263

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/s390/self-hosted-builder/actions-runner.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ RUN dnf install -y -q dotnet-sdk-8.0 && \
1414
RUN cd /tmp && \
1515
git clone -q https://github.com/actions/runner && \
1616
cd runner && \
17-
git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) -b build && \
17+
git checkout $(git tag | grep "^v[0-9]\+\.[0-9]\+\.[0-9]\+$" | sort -V | tail -1) -b build && \
1818
wget https://github.com/anup-kodlekere/gaplib/raw/refs/heads/main/patches/runner-main-sdk8-s390x.patch -O runner-sdk-8.patch && \
1919
git apply runner-sdk-8.patch && \
2020
sed -i'' -e /version/s/8......\"$/$8.0.100\"/ src/global.json

0 commit comments

Comments
 (0)