mirror of
https://github.com/actions/setup-go.git
synced 2025-06-29 20:53:43 +00:00
Use GitHub releases to download Go versions. (#58)
This commit is contained in:
parent
0f551ac199
commit
1616116e1b
10 changed files with 4156 additions and 9837 deletions
14
__tests__/verify-go.sh
Executable file
14
__tests__/verify-go.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
|
||||
#!/bin/sh
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "Must supply go version argument"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
go_version="$(go version)"
|
||||
echo "Found go version '$go_version'"
|
||||
if [ -z "$(echo $go_version | grep $1)" ]; then
|
||||
echo "Unexpected version"
|
||||
exit 1
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue