Skip to content

Commit d365a86

Browse files
committed
ci: output more info for debugging GHA
1 parent 3d7fca7 commit d365a86

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,16 @@ jobs:
2727
- name: Debug info
2828
# https://docs.github.com/en/actions/reference/security/secure-use#use-an-intermediate-environment-variable
2929
env:
30-
GH_HEAD_REF: ${{ github.head_ref }}
30+
# `env:` values are printed to the log even without using them in `run:`
31+
GH_CONTEXT: ${{ toJson(github) }}
32+
GH_EVENT: ${{ toJson(github.event) }}
33+
GH_PULL_REQUEST: ${{ toJson(github.event.pull_request) }}
3134
run: |
3235
cat <<EOF
33-
Scratch environment: ${{ vars.SCRATCH_ENV || '<none>' }}
36+
Working directory: $(pwd)
3437
Node version: $(node --version)
3538
NPM version: $(npm --version)
36-
GitHub ref: ${{ github.ref }}
37-
GitHub head ref: ${GH_HEAD_REF}
38-
Working directory: $(pwd)
39+
Scratch environment: ${{ vars.SCRATCH_ENV || '<none>' }}
3940
EOF
4041
4142
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3

0 commit comments

Comments
 (0)