Skip to content

Commit 0e6d4bd

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

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-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: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,25 @@ 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_SHA"
58+
# echo "$GITHUB_REF"
59+
# echo "$GITHUB_HEAD_REF"
60+
# echo "$GITHUB_BASE_REF"
61+
# git log "$GITHUB_BASE_REF"..
62+
# bin/commitlint "$GITHUB_BASE_REF"..
63+
5364
- name: Check commit messages
5465
# for a PR this will be: master..origin/$GITHUB_HEAD_REF
5566
# for a push it will be: master..
5667
run: |
57-
bin/commitlint origin/master..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF}
68+
echo A"$BEFORE"B
69+
echo C"${BEFORE}"D
70+
echo E"${BEFORE:-origin/master}"F
71+
bin/commitlint ${BEFORE:-origin/master}..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF}
5872
5973
# things to be cached/restored:
6074

0 commit comments

Comments
 (0)