1
0
mirror of https://code.forgejo.org/forgejo/act.git synced 2025-04-19 08:22:16 +03:00

fix: it is ok for the toolchain to be higher than the required version

This commit is contained in:
Earl Warren 2025-03-21 14:28:03 +01:00
parent 8517e5060f
commit a910e74bb3
No known key found for this signature in database
GPG Key ID: 0579CB2928A78A00

View File

@ -46,8 +46,8 @@ jobs:
set -ex
toolchain=$(grep -oP '(?<=toolchain ).+' go.mod)
version=$(go version | cut -d' ' -f3)
if [ "$toolchain" != "$version" ]; then
echo "go version mismatch: $toolchain <> $version"
if dpkg --compare-versions ${version#go} lt ${toolchain#go}; then
echo "go version too low: $toolchain >= $version"
exit 1
fi