Skip to content

Commit 9ba7c67

Browse files
authored
Update Save State Docs (actions#467)
* Update Save State Docs
1 parent c94bc40 commit 9ba7c67

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/commands.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,14 @@ echo "::remove-matcher owner=eslint-compact::"
114114
`remove-matcher` removes a Problem Matcher by owner
115115
### Save State
116116

117-
Save state to be used in the corresponding wrapper (finally) post job entry point.
117+
Save a state to an environmental variable that can later be used in the main or post action.
118118

119119
```bash
120120
echo "::save-state name=FOO::foovalue"
121121
```
122122

123+
An environmental variable named `STATE_FOO` will be available to use in the post or main action. See [Sending Values to the pre and post actions](https://help.github.com/en/actions/reference/workflow-commands-for-github-actions#sending-values-to-the-pre-and-post-actions) for more information.
124+
123125
### Log Level
124126

125127
There are several commands to emit different levels of log output:

0 commit comments

Comments
 (0)