Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions content/actions/reference/workflow-commands-for-github-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,19 @@ Creates or updates an environment variable for any actions running next in a job

#### Example

```bash
echo "action_state=yellow" >> $GITHUB_ENV
{% raw %}
```

Running `$action_state` in a future step will now return `yellow`
steps:
- name: Set the value
id: step_one
run: |
echo "action_state=yellow" >> $GITHUB_ENV
- name: Use the value
id: step_two
run: |
echo "${{ env.action_state }}" # This will output 'yellow'
```
{% endraw %}

#### Multiline strings

Expand Down