From 9ba7c679ad74f6a80017feeb94b7a7c19b590796 Mon Sep 17 00:00:00 2001 From: Thomas Boop <52323235+thboop@users.noreply.github.com> Date: Wed, 27 May 2020 10:40:32 -0400 Subject: [PATCH] Update Save State Docs (#467) * Update Save State Docs --- docs/commands.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/commands.md b/docs/commands.md index bc91edc7..0edf2f07 100644 --- a/docs/commands.md +++ b/docs/commands.md @@ -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: