Skip to content

Commit 7d42b9e

Browse files
Another commit on top
1 parent 284e847 commit 7d42b9e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/context.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
---
22

3+
# this file is *not* meant to cover or endorse the use of GitHub Actions, but
4+
# rather to help make automated releases for this project
5+
36
name: Context testing
47

58
on: [push, pull_request] # yamllint disable-line rule:truthy
@@ -11,7 +14,10 @@ jobs:
1114
- name: Dump GitHub context
1215
env:
1316
GITHUB_CONTEXT: ${{ toJson(github) }}
14-
run: echo "$GITHUB_CONTEXT"
17+
# "event.pull_request.commits" is interesting
18+
run: |
19+
echo "$GITHUB_CONTEXT"
20+
echo "$GITHUB_CONTEXT" | jq -c '.event.pull_request.commits'
1521
- name: Dump job context
1622
env:
1723
JOB_CONTEXT: ${{ toJson(job) }}

0 commit comments

Comments
 (0)