mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-26 11:52:43 +03:00
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.
This commit is contained in:
parent
ff76927ee8
commit
ee276afc56
2
.github/workflows/linux.yml
vendored
2
.github/workflows/linux.yml
vendored
@ -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}
|
||||
|
2
.github/workflows/mac.yml
vendored
2
.github/workflows/mac.yml
vendored
@ -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}
|
||||
|
2
.github/workflows/push.yml
vendored
2
.github/workflows/push.yml
vendored
@ -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}
|
||||
|
2
.github/workflows/windows.yml
vendored
2
.github/workflows/windows.yml
vendored
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user