File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -31,27 +31,11 @@ jobs:
31
31
-
32
32
name : Unshallow
33
33
run : git fetch --prune --unshallow
34
- -
35
- name : Read go version (Unix)
36
- if : ${{ runner.os != 'Windows' }}
37
- id : go-version-unix
38
- run : |
39
- content=`cat ./.go-version`
40
- echo "::set-output name=content::$content"
41
- -
42
- name : Read go version (Windows)
43
- if : ${{ runner.os == 'Windows' }}
44
- id : go-version-win
45
- run : |
46
- $content = Get-Content .\.go-version -Raw
47
- echo "::set-output name=content::$content"
48
34
-
49
35
name : Set up Go
50
36
uses : actions/setup-go@v3
51
37
with :
52
- # TODO: Replace with go-version-from-file when it is supported
53
- # https://github.com/actions/setup-go/pull/62
54
- go-version : ${{ steps.go-version-unix.outputs.content || steps.go-version-win.outputs.content }}
38
+ go-version-file : " .go-version"
55
39
-
56
40
name : Go mod download
57
41
run : go mod download -x
You can’t perform that action at this time.
0 commit comments