From ee276afc56657190637450a11973607d82b36122 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sun, 14 Nov 2021 15:49:04 -1000 Subject: [PATCH] ci: fall back on checking last 5 commit messages, instead of 20 This will allow CI status to recover faster when a bad commit message is accidentally merged. In some cases (eg force pushes of PRs with more than 5 commits) not all commit messages will be checked at all times. --- .github/workflows/linux.yml | 2 +- .github/workflows/mac.yml | 2 +- .github/workflows/push.yml | 2 +- .github/workflows/windows.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index fb7b61955..12c2c7e74 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -109,7 +109,7 @@ jobs: # related: https://stackoverflow.com/questions/64708371/how-to-run-github-workflow-on-every-commit-of-a-push env: BEFORE: ${{ github.event.before }} - NUM: 20 + NUM: 5 shell: bash run: | RANGE=${BEFORE:-origin/master}..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index 62f887311..2fbd9f975 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -66,7 +66,7 @@ jobs: # related: https://stackoverflow.com/questions/64708371/how-to-run-github-workflow-on-every-commit-of-a-push env: BEFORE: ${{ github.event.before }} - NUM: 20 + NUM: 5 shell: bash run: | RANGE=${BEFORE:-origin/master}..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 7a9df8661..438ee0b66 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -77,7 +77,7 @@ jobs: # related: https://stackoverflow.com/questions/64708371/how-to-run-github-workflow-on-every-commit-of-a-push env: BEFORE: ${{ github.event.before }} - NUM: 20 + NUM: 5 shell: bash run: | RANGE=${BEFORE:-origin/master}..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF} diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 1ca3c3265..1ac81b642 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -59,7 +59,7 @@ jobs: # related: https://stackoverflow.com/questions/64708371/how-to-run-github-workflow-on-every-commit-of-a-push env: BEFORE: ${{ github.event.before }} - NUM: 20 + NUM: 5 shell: bash run: | RANGE=${BEFORE:-origin/master}..${GITHUB_HEAD_REF:+origin/$GITHUB_HEAD_REF}