mirror of
https://github.com/actions/setup-go.git
synced 2026-10-17 12:37:52 +02:00
Use GitHub releases to download Go versions. (#58)
This commit is contained in:
1 parent
0f551ac199
commit
1616116e1b
10 files changed
+4156
-9837
No files matched your search
Executable
+14
@@ -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
|
||||
Reference in new issue
Block a user