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:
parent
8517e5060f
commit
a910e74bb3
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user