ci: switch to env files (#160)

Switch to env files following the deprecation of set-env and add-path commands.

https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
This commit is contained in:
Michael McLoughlin
2020-11-29 17:27:00 -08:00
committed by GitHub
parent 5d2f697d26
commit 45c8ae10fd

View File

@@ -21,8 +21,8 @@ jobs:
go-version: ${{ matrix.go-version }}
- name: Configure Go Environment
run: |
echo ::set-env name=GOPATH::${{ runner.workspace }}
echo ::add-path::${{ runner.workspace }}/bin
echo GOPATH=${{ runner.workspace }} >> $GITHUB_ENV
echo ${{ runner.workspace }}/bin >> $GITHUB_PATH
- name: Go Environment
run: go env
- name: Checkout code
@@ -63,8 +63,8 @@ jobs:
go-version: ${{ matrix.go-version }}
- name: Configure Go Environment
run: |
echo ::set-env name=GOPATH::${{ runner.workspace }}
echo ::add-path::${{ runner.workspace }}/bin
echo GOPATH=${{ runner.workspace }} >> $GITHUB_ENV
echo ${{ runner.workspace }}/bin >> $GITHUB_PATH
- name: Go Environment
run: go env
- name: Checkout code