File tree Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Original file line number Diff line number Diff line change 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:
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments