Skip to content

Commit 435e423

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

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

.github/workflows/linux.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,11 @@ jobs:
8787
with:
8888
fetch-depth: 0
8989

90-
#- name: Print debug output
91-
# env:
92-
# GITHUB_CONTEXT: ${{ toJson(github) }}
93-
# run: |
90+
- name: Print debug output
91+
env:
92+
GITHUB_CONTEXT: ${{ toJson(github) }}
93+
run: |
94+
echo ${GITHUB_CONTEXT}
9495
# echo "$GITHUB_SHA"
9596
# echo "$GITHUB_REF"
9697
# echo "$GITHUB_HEAD_REF"
@@ -104,6 +105,9 @@ jobs:
104105
# for a PR this will be: origin/master..origin/$GITHUB_HEAD_REF
105106
# for a push it will be: $BEFORE..
106107
run: |
108+
echo A"$BEFORE"B
109+
echo C"${BEFORE}"D
110+
echo E"${BEFORE:-origin/master}"F
107111
bin/commitlint ${BEFORE:-origin/master}..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF}
108112
109113
# things to be cached/restored:

.github/workflows/push.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,26 @@ jobs:
5050
with:
5151
fetch-depth: 0
5252

53+
- name: Print debug output
54+
env:
55+
GITHUB_CONTEXT: ${{ toJson(github) }}
56+
run: |
57+
echo ${GITHUB_CONTEXT}
58+
# echo "$GITHUB_SHA"
59+
# echo "$GITHUB_REF"
60+
# echo "$GITHUB_HEAD_REF"
61+
# echo "$GITHUB_BASE_REF"
62+
# git log "$GITHUB_BASE_REF"..
63+
# bin/commitlint "$GITHUB_BASE_REF"..
64+
5365
- name: Check commit messages
5466
# for a PR this will be: master..origin/$GITHUB_HEAD_REF
5567
# for a push it will be: master..
5668
run: |
57-
bin/commitlint origin/master..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF}
69+
echo A"$BEFORE"B
70+
echo C"${BEFORE}"D
71+
echo E"${BEFORE:-origin/master}"F
72+
bin/commitlint ${BEFORE:-origin/master}..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF}
5873
5974
# things to be cached/restored:
6075

0 commit comments

Comments
 (0)