We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4e5877 commit dbea1fdCopy full SHA for dbea1fd
.github/workflows/context.yml
@@ -1,22 +1,18 @@
1
name: Context Examples
2
3
-on: ['push']
+on:
4
+ push:
5
+ branches: [ main ]
6
+
7
jobs:
8
context-job:
9
runs-on: ubuntu-latest
- env:
- MY_ACTION: ${{ github.action }}
10
steps:
11
- name: "My Step"
- run: echo "Hello! $MY_ACTION"
12
- - name: Show Runner Context
13
- run: |
14
- echo "$RUNNER_CONTEXT"
15
- - name: Show Job Context
16
17
- echo "Job Context:"
18
- echo "$JOB_CONTEXT"
19
- - name: Show Step Context
20
run: |
21
- echo "Step Context:"
22
- echo "$STEP_CONTEXT"
+ echo "Action! $MY_ACTION"
+ echo "Actor! $MY_ACTOR"
+ env:
+ MY_ACTION: ${{ github.action }}
+ MY_ACTOR: ${{ github.actor }}
0 commit comments