diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 11ce5d0ce..ffd4a8622 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -87,11 +87,11 @@ jobs: with: fetch-depth: 0 - # - name: Print debug output - # env: - # GITHUB_CONTEXT: ${{ toJson(github) }} - # run: | - # echo + - name: Print debug output + env: + GITHUB_CONTEXT: ${{ toJson(github) }} + run: | + echo $GITHUB_CONTEXT # echo "$GITHUB_SHA" # echo "$GITHUB_REF" @@ -114,12 +114,14 @@ jobs: RANGE=${BEFORE:-origin/master}..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} git rev-list --quiet $RANGE \ && bin/commitlint $RANGE \ - || ( echo "could not identify commits, checking last $NUM instead:"; bin/commitlint -$NUM ) + || ( echo "could not identify commit range, checking last $NUM instead:"; bin/commitlint -$NUM ) - name: Skip remaining CI steps if latest commit message begins with ; run: | + echo "git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} >> $$.gitlog" git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} >> $$.gitlog - grep -qE '^ *;' $$.gitlog || echo "CONTINUE=true" >> $GITHUB_ENV + && (grep -qE '^ *;' $$.gitlog || echo "CONTINUE=true" >> $GITHUB_ENV) + || ( echo "could not identify commit range, continuing CI steps") # things to be cached/restored: diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index b8c76bd67..952205471 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -75,8 +75,10 @@ jobs: - name: Skip remaining CI steps if latest commit message begins with ; run: | + echo "git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} >> $$.gitlog" git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} >> $$.gitlog - grep -qE '^ *;' $$.gitlog || echo "CONTINUE=true" >> $GITHUB_ENV + && (grep -qE '^ *;' $$.gitlog || echo "CONTINUE=true" >> $GITHUB_ENV) + || ( echo "could not identify commit range, continuing CI steps") # things to be cached/restored: diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 857732687..acc8c4ba3 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -86,8 +86,10 @@ jobs: - name: Skip remaining CI steps if latest commit message begins with ; run: | + echo "git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} >> $$.gitlog" git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} >> $$.gitlog - grep -qE '^ *;' $$.gitlog || echo "CONTINUE=true" >> $GITHUB_ENV + && (grep -qE '^ *;' $$.gitlog || echo "CONTINUE=true" >> $GITHUB_ENV) + || ( echo "could not identify commit range, continuing CI steps") # things to be cached/restored: diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 58d153951..a0a2e9189 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -68,10 +68,11 @@ jobs: || ( echo "could not identify commits, checking last $NUM instead:"; bin/commitlint -$NUM ) - name: Skip remaining CI steps if latest commit message begins with ; - shell: bash run: | + echo "git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} >> $$.gitlog" git log -1 --pretty='%s' ${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} >> $$.gitlog - grep -qE '^ *;' $$.gitlog || echo "CONTINUE=true" >> $GITHUB_ENV + && (grep -qE '^ *;' $$.gitlog || echo "CONTINUE=true" >> $GITHUB_ENV) + || ( echo "could not identify commit range, continuing CI steps") # things to be cached/restored: