diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 91d121d1104e..dc9383dcf0e0 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -87,9 +87,9 @@ jobs: with: fetch-depth: 0 - #- name: Print debug output - # env: - # GITHUB_CONTEXT: ${{ toJson(github) }} + - name: Print debug output + env: + GITHUB_CONTEXT: ${{ toJson(github) }} # run: | # echo "$GITHUB_SHA" # echo "$GITHUB_REF" @@ -104,6 +104,9 @@ jobs: # for a PR this will be: origin/master..origin/$GITHUB_HEAD_REF # for a push it will be: $BEFORE.. run: | + echo A"$BEFORE"B + echo C"${BEFORE}"D + echo E"${BEFORE:-origin/master}"F bin/commitlint ${BEFORE:-origin/master}..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} # things to be cached/restored: diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 509d789cf9a8..a2a750a9dc20 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -50,11 +50,25 @@ jobs: with: fetch-depth: 0 + - name: Print debug output + env: + GITHUB_CONTEXT: ${{ toJson(github) }} + # run: | + # echo "$GITHUB_SHA" + # echo "$GITHUB_REF" + # echo "$GITHUB_HEAD_REF" + # echo "$GITHUB_BASE_REF" + # git log "$GITHUB_BASE_REF".. + # bin/commitlint "$GITHUB_BASE_REF".. + - name: Check commit messages # for a PR this will be: master..origin/$GITHUB_HEAD_REF # for a push it will be: master.. run: | - bin/commitlint origin/master..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} + echo A"$BEFORE"B + echo C"${BEFORE}"D + echo E"${BEFORE:-origin/master}"F + bin/commitlint ${BEFORE:-origin/master}..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} # things to be cached/restored: