File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -24,30 +24,23 @@ jobs:
2424 # https://github.com/actions/setup-go/tree/v5#getting-go-version-from-the-gomod-file
2525 # https://github.com/actions/setup-go/tree/v5#using-stableoldstable-aliases
2626
27- env :
28- RELEASE_GO_VER : " 1.23"
29-
3027 name : Documentation and Linting
3128 steps :
3229
3330 - uses : actions/checkout@v4
34- with :
35- path : go/src/github.com/opencontainers/image-spec
3631
3732 - uses : actions/setup-go@v5
3833 with :
3934 go-version : ${{ matrix.go != 'go.mod' && matrix.go || null }}
40- go-version-file : ${{ matrix.go == 'go.mod' && 'go/src/github.com/opencontainers/image-spec/go .mod' || null }}
41- cache-dependency-path : go/src/github.com/opencontainers/image-spec/ go.sum
35+ go-version-file : ${{ matrix.go == 'go.mod' && 'go.mod' || null }}
36+ # cache-dependency-path: go.sum
4237
4338 - name : Render and Lint
4439 env :
45- GOPATH : /home/runner/work/image-spec/image-spec/go
4640 # do not automatically upgrade go to a different version: https://go.dev/doc/toolchain
4741 GOTOOLCHAIN : local
4842 run : |
49- export PATH=$GOPATH/bin:$PATH
50- cd go/src/github.com/opencontainers/image-spec
43+ export PATH="$(go env GOPATH)/bin:$PATH"
5144 make install.tools
5245 go get -t -d ./...
5346 ls ../
6053
6154 - name : documentation artifacts
6255 uses : actions/upload-artifact@v4
63- if : matrix.go == env.RELEASE_GO_VER
56+ if : matrix.go == 'stable'
6457 with :
6558 name : oci-docs
66- path : go/src/github.com/opencontainers/image-spec/ output
59+ path : output
You can’t perform that action at this time.
0 commit comments