Skip to content

Commit dbea1fd

Browse files
Fix run command formatting in context.yml
1 parent d4e5877 commit dbea1fd

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

.github/workflows/context.yml

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
11
name: Context Examples
22

3-
on: ['push']
3+
on:
4+
push:
5+
branches: [ main ]
6+
47
jobs:
58
context-job:
69
runs-on: ubuntu-latest
7-
env:
8-
MY_ACTION: ${{ github.action }}
910
steps:
1011
- name: "My Step"
11-
run: echo "Hello! $MY_ACTION"
12-
- name: Show Runner Context
13-
run: |
14-
echo "$RUNNER_CONTEXT"
15-
- name: Show Job Context
16-
run: |
17-
echo "Job Context:"
18-
echo "$JOB_CONTEXT"
19-
- name: Show Step Context
2012
run: |
21-
echo "Step Context:"
22-
echo "$STEP_CONTEXT"
13+
echo "Action! $MY_ACTION"
14+
echo "Actor! $MY_ACTOR"
15+
env:
16+
MY_ACTION: ${{ github.action }}
17+
MY_ACTOR: ${{ github.actor }}
18+

0 commit comments

Comments
 (0)