timeout-minutes:360# Use maximum time, see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes
timeout-minutes:360# Use maximum time, see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes. Assuming a worst case time of 1 hour per commit, this leads to a --max-count=6 below.
env:
MAX_COUNT:'--max-count=6'
steps:
- uses:actions/checkout@v3
with:
ref:${{ github.event.pull_request.head.sha }}
fetch-depth:'0'
fetch-depth:'8'# Two more than $MAX_COUNT
- run:git checkout HEAD~ # Skip the top commit, because it is already checked by the other tasks.