Skip to content

Commit 048681a

Browse files
committed
github actions tests: replace set-env with GITHUB_ENV
set-env is deprecated for security reasons, so move to the new GITHUB_ENV approach.
1 parent 73adf6a commit 048681a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
stable: true
2020

2121
- run: |
22-
echo "::set-env name=GOPATH::${HOME}/go"
22+
echo "GOPATH=${HOME}/go" >> $GITHUB_ENV
2323
2424
- uses: actions/checkout@v2
2525

@@ -43,7 +43,7 @@ jobs:
4343
stable: true
4444

4545
- run: |
46-
echo "::set-env name=GOPATH::${HOME}/go"
46+
echo "GOPATH=${HOME}/go" >> $GITHUB_ENV
4747
4848
- uses: actions/checkout@v2
4949

0 commit comments

Comments
 (0)