Skip to content

Commit ea9bddb

Browse files
committed
ci: debug (#1602)
1 parent e846dfa commit ea9bddb

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/linux.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ jobs:
8787
with:
8888
fetch-depth: 0
8989

90-
#- name: Print debug output
91-
# env:
92-
# GITHUB_CONTEXT: ${{ toJson(github) }}
90+
- name: Print debug output
91+
env:
92+
GITHUB_CONTEXT: ${{ toJson(github) }}
9393
# run: |
9494
# echo "$GITHUB_SHA"
9595
# echo "$GITHUB_REF"
@@ -104,6 +104,9 @@ jobs:
104104
# for a PR this will be: origin/master..origin/$GITHUB_HEAD_REF
105105
# for a push it will be: $BEFORE..
106106
run: |
107+
echo A"$BEFORE"B
108+
echo C"${BEFORE}"D
109+
echo E"${BEFORE:-origin/master}"F
107110
bin/commitlint ${BEFORE:-origin/master}..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF}
108111
109112
# things to be cached/restored:

.github/workflows/push.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ jobs:
5454
# for a PR this will be: master..origin/$GITHUB_HEAD_REF
5555
# for a push it will be: master..
5656
run: |
57-
bin/commitlint origin/master..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF}
57+
echo A"$BEFORE"B
58+
echo C"${BEFORE}"D
59+
echo E"${BEFORE:-origin/master}"F
60+
bin/commitlint ${BEFORE:-origin/master}..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF}
5861
5962
# things to be cached/restored:
6063

0 commit comments

Comments
 (0)