update the way env is set
This commit is contained in:
parent
8bc13046c4
commit
da1a889fd6
8
.github/workflows/cli.yml
vendored
8
.github/workflows/cli.yml
vendored
@ -6,10 +6,6 @@ on:
|
||||
- master
|
||||
- v1
|
||||
|
||||
env:
|
||||
GO111MODULE: on
|
||||
GOPROXY: https://proxy.golang.org
|
||||
|
||||
jobs:
|
||||
test:
|
||||
strategy:
|
||||
@ -24,9 +20,11 @@ jobs:
|
||||
with:
|
||||
go-version: ${{ matrix.go }}
|
||||
|
||||
- name: Set GOPATH and PATH
|
||||
- name: Set GOPATH, PATH and ENV
|
||||
run: |
|
||||
echo "::set-env name=GOPATH::$(dirname $GITHUB_WORKSPACE)"
|
||||
echo "::set-env name=GO111MODULE::on"
|
||||
echo "::set-env name=GOPROXY::https://proxy.golang.org,direct"
|
||||
echo "::add-path::$(dirname $GITHUB_WORKSPACE)/bin"
|
||||
shell: bash
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user