Skip to content

Commit 56bc295

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

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

.github/workflows/linux.yml

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

90-
#- name: Print debug output
90+
# - name: Print debug output
9191
# env:
9292
# GITHUB_CONTEXT: ${{ toJson(github) }}
9393
# run: |
94+
# echo
95+
9496
# echo "$GITHUB_SHA"
9597
# echo "$GITHUB_REF"
9698
# echo "$GITHUB_HEAD_REF"
@@ -100,10 +102,13 @@ jobs:
100102

101103
- name: Check commit messages
102104
env:
103-
BEFORE: ${{ github.event.push.before }}
105+
BEFORE: ${{ github.event.before }}
104106
# for a PR this will be: origin/master..origin/$GITHUB_HEAD_REF
105107
# for a push it will be: $BEFORE..
106108
run: |
109+
echo A"$BEFORE"B
110+
echo C"${BEFORE}"D
111+
echo E"${BEFORE:-origin/master}"F
107112
bin/commitlint ${BEFORE:-origin/master}..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF}
108113
109114
# things to be cached/restored:

.github/workflows/push.yml

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

53+
# - name: Print debug output
54+
# env:
55+
# GITHUB_CONTEXT: ${{ toJson(github) }}
56+
# run: |
57+
# echo
58+
59+
# echo "$GITHUB_SHA"
60+
# echo "$GITHUB_REF"
61+
# echo "$GITHUB_HEAD_REF"
62+
# echo "$GITHUB_BASE_REF"
63+
# git log "$GITHUB_BASE_REF"..
64+
# bin/commitlint "$GITHUB_BASE_REF"..
65+
5366
- name: Check commit messages
67+
env:
68+
BEFORE: ${{ github.event.before }}
5469
# for a PR this will be: master..origin/$GITHUB_HEAD_REF
5570
# for a push it will be: master..
5671
run: |
57-
bin/commitlint origin/master..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF}
72+
echo A"$BEFORE"B
73+
echo C"${BEFORE}"D
74+
echo E"${BEFORE:-origin/master}"F
75+
bin/commitlint ${BEFORE:-origin/master}..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF}
5876
5977
# things to be cached/restored:
6078

0 commit comments

Comments
 (0)