diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 12c2c7e74..c7aa275cf 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -105,7 +105,7 @@ jobs: # For a PR, the range will be: master..origin/$GITHUB_HEAD_REF # For a push it will be: $BEFORE.. # For a force push, BEFORE is the previous HEAD, and on github (though not locally) this is an "invalid revision range". - # In this and any case where the range is invalid, we'll just check the last N commits. + # In this and any case where the range is invalid, we'll just skip the check, to avoid false positives # related: https://stackoverflow.com/questions/64708371/how-to-run-github-workflow-on-every-commit-of-a-push env: BEFORE: ${{ github.event.before }} @@ -115,7 +115,8 @@ jobs: RANGE=${BEFORE:-origin/master}..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} git rev-list --quiet $RANGE \ && bin/commitlint $RANGE \ - || ( echo "could not identify commit range, checking last $NUM instead:"; bin/commitlint -$NUM ) + || ( echo "could not identify commits, not checking them" ) + # || ( 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 diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index 2fbd9f975..3f4a2b288 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -62,7 +62,7 @@ jobs: # For a PR, the range will be: master..origin/$GITHUB_HEAD_REF # For a push it will be: $BEFORE.. # For a force push, BEFORE is the previous HEAD, and on github (though not locally) this is an "invalid revision range". - # In this and any case where the range is invalid, we'll just check the last N commits. + # In this and any case where the range is invalid, we'll just skip the check, to avoid false positives # related: https://stackoverflow.com/questions/64708371/how-to-run-github-workflow-on-every-commit-of-a-push env: BEFORE: ${{ github.event.before }} @@ -72,7 +72,8 @@ 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 commits, not checking them" ) + # || ( 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 diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 438ee0b66..775bd79ef 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -73,7 +73,7 @@ jobs: # For a PR, the range will be: master..origin/$GITHUB_HEAD_REF # For a push it will be: $BEFORE.. # For a force push, BEFORE is the previous HEAD, and on github (though not locally) this is an "invalid revision range". - # In this and any case where the range is invalid, we'll just check the last N commits. + # In this and any case where the range is invalid, we'll just skip the check, to avoid false positives # related: https://stackoverflow.com/questions/64708371/how-to-run-github-workflow-on-every-commit-of-a-push env: BEFORE: ${{ github.event.before }} @@ -83,7 +83,8 @@ 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 commits, not checking them" ) + # || ( 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 diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 1ac81b642..ecb67ce38 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -55,7 +55,7 @@ jobs: # For a PR, the range will be: master..origin/$GITHUB_HEAD_REF # For a push it will be: $BEFORE.. # For a force push, BEFORE is the previous HEAD, and on github (though not locally) this is an "invalid revision range". - # In this and any case where the range is invalid, we'll just check the last N commits. + # In this and any case where the range is invalid, we'll just skip the check, to avoid false positives # related: https://stackoverflow.com/questions/64708371/how-to-run-github-workflow-on-every-commit-of-a-push env: BEFORE: ${{ github.event.before }} @@ -65,7 +65,8 @@ 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 commits, not checking them" ) + # || ( 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