Skip to content

Commit d89d694

Browse files
committed
1 parent fc2546d commit d89d694

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,16 @@ jobs:
6060

6161
#### How do I set environment variables at run-time?
6262

63-
You can use [workflow commands](https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions)
64-
to set environment variables, add an element to `$PATH`, and more. For example:
63+
You can use [workflow commands](https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#environment-files)
64+
to set environment variables or add an element to `$PATH`. For example:
6565

6666
```yaml
67-
echo "::set-env name=CGO_ENABLED::0"
68-
echo "::add-path::${HOME}/goroot/bin"
67+
echo "CGO_ENABLED=0" >> $GITHUB_ENV
68+
echo "${HOME}/goroot/bin" >> $GITHUB_PATH
6969
```
7070

71+
Note that these take effect for future steps in the job.
72+
7173
#### How do I set up caching between builds?
7274

7375
Use [actions/cache](https://github.com/actions/cache). For example, to cache

0 commit comments

Comments
 (0)