1
0
mirror of synced 2026-01-20 21:02:43 -05:00

Update workflow-commands-for-github-actions.md

This commit is contained in:
Ferenc Hammerl
2021-08-30 12:18:09 +02:00
committed by GitHub
parent 5bb977abb5
commit 7167d4a39f

View File

@@ -240,7 +240,7 @@ To start workflow commands, pass the token that you used to stop workflow comman
You can use the `save-state` command to create environment variables for sharing with your workflow's `pre:` or `post:` actions. For
, you can create a file with the `pre:` action, pass the file location to the `main:` action, and then use the `post:` action to delete the file. Alternatively, you could create a file with the `main:` action, pass the file location to the `post:` action, and also use the `post:` action to delete the file.
If you have multiple `pre:` or `post:` actions, you can only access the saved value in the action where `save-state` was used. For more information on the `post:` action, see "[Metadata syntax for data variables.product.prodname_actions %}](/actions/creating-actions/metadata-syntax-for-github-actions#post)."
If you have multiple `pre:` or `post:` actions, you can only access the saved value in the action where `save-state` was used. For more information on the `post:` action, see "[Metadata syntax for {% data variables.product.prodname_actions %}](/actions/creating-actions/metadata-syntax-for-github-actions#post)."
The `save-state` command can only be run within an action, and is not available to YAML files. The saved value is stored as an environment value with the `STATE_` prefix.