Skip to content

Commit d4e5877

Browse files
attempt context
1 parent 408095a commit d4e5877

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/context.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Context Examples
2+
3+
on: ['push']
4+
jobs:
5+
context-job:
6+
runs-on: ubuntu-latest
7+
env:
8+
MY_ACTION: ${{ github.action }}
9+
steps:
10+
- 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
20+
run: |
21+
echo "Step Context:"
22+
echo "$STEP_CONTEXT"

0 commit comments

Comments
 (0)