Skip to content

Commit 492f2fc

Browse files
authored
Audit Variables Workflow Examples (#49673)
1 parent 9f9eead commit 492f2fc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

content/actions/learn-github-actions/variables.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,10 @@ However, you cannot use runner environment variables in parts of a workflow that
233233
{% raw %}
234234

235235
```yaml copy
236+
name: Conditional env variable
237+
238+
on: workflow_dispatch
239+
236240
env:
237241
DAY_OF_WEEK: Monday
238242
@@ -369,6 +373,8 @@ You can write a single workflow file that can be used for different operating sy
369373
{% raw %}
370374

371375
```yaml copy
376+
on: workflow_dispatch
377+
372378
jobs:
373379
if-Windows-else:
374380
runs-on: macos-latest

0 commit comments

Comments
 (0)