You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,14 +60,16 @@ jobs:
60
60
61
61
#### How do I set environment variables at run-time?
62
62
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:
65
65
66
66
```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
69
69
```
70
70
71
+
Note that these take effect for future steps in the job.
72
+
71
73
#### How do I set up caching between builds?
72
74
73
75
Use [actions/cache](https://github.com/actions/cache). For example, to cache
0 commit comments