.github: avoid full checkout on backport
The backport action should work with a sparse tree, so materializing all files is just wasteful. Since total time allocated for backport jobs is just 3 mins, sometimes a slow worktree checkout consumes a good chunk of it and pushes the job to timeout, resulting in missed backport. See for example: https://github.com/NixOS/nixpkgs/actions/runs/30587897004/job/91023481883
This commit is contained in:
@@ -39,6 +39,8 @@ jobs:
|
||||
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
# Avoid materializing full nixpkgs tree
|
||||
sparse-checkout: .
|
||||
token: ${{ steps.app-token.outputs.token }}
|
||||
persist-credentials: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user