Skip to content

Commit 40d202e

Browse files
committed
Better dumping github event info
1 parent 69eb172 commit 40d202e

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed
Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Dump GITHUB_EVENT_PATH
1+
name: Dump github.event
22
on:
33
push:
44
pull_request:
@@ -12,10 +12,6 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Test
15-
run: |
16-
ls /home/runner/work/_temp/_github_workflow/
17-
echo github.event_path = ${{github.event_path}}
18-
echo github.event_name = ${{github.event_name}}
19-
echo github.ref = ${{github.ref}}
20-
echo GITHUB_EVENT_PATH = "'$GITHUB_EVENT_PATH'"
21-
cat $GITHUB_EVENT_PATH
15+
run: cat <<< "$heck"
16+
env:
17+
heck: ${{toJSON(github.event)}}

0 commit comments

Comments
 (0)