mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-02-19 04:16:53 -05:00
ci: fix go version check
This commit is contained in:
parent
6a5dc12732
commit
b68f772a15
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ runs:
|
|||
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…
Add table
Reference in a new issue