mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-01-20 13:23:05 +00:00
build: relax required go version for local development
This commit is contained in:
parent
790f3c4861
commit
5efd29e54e
|
@ -13,3 +13,13 @@ runs:
|
|||
- uses: https://codeberg.org/fnetx/setup-cache-go@4b50dd28b1068fa06d433c5fabed3f6f4d4ccddf
|
||||
with:
|
||||
username: forgejo
|
||||
|
||||
- name: validate go version
|
||||
run: |
|
||||
set -ex
|
||||
toolchain=$(grep -oP '(?<=toolchain ).+' go.mod)
|
||||
version=$(go version | cut -d' ' -f3)
|
||||
if [ "$toolchain" != "$version" ]; then
|
||||
echo "go version mismatch: $toolchain <> $version"
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue