Skip to content

Commit

Permalink
Update Save State Docs (actions#467)
Browse files Browse the repository at this point in the history
* Update Save State Docs
  • Loading branch information
thboop authored May 27, 2020
1 parent c94bc40 commit 9ba7c67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,14 @@ echo "::remove-matcher owner=eslint-compact::"
`remove-matcher` removes a Problem Matcher by owner
### Save State

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

```bash
echo "::save-state name=FOO::foovalue"
```

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.

### Log Level

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

0 comments on commit 9ba7c67

Please sign in to comment.