mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-03 20:37:30 +00:00
* ci: change detection fetches the history its diffs read, not every branch and tag The Detect changes job checked out with fetch-depth 0, which fetches all 1,400 branches and 670 tags to diff two commits; twice that stalled for the whole minute and took a pull request out of the merge queue. It now checks out the commit and fetches its ancestry and main without file contents. * ci: no change-detection or reachability checkout can run into the one-minute limit The Detect changes jobs of four workflows and the reachability job kept a one-minute checkout limit with a retry; two of them hit it together and took a pull request out of the merge queue. Each now has one checkout with three minutes, change detection shares one fetch-history step, and the reachability job, which reads only the base commit, fetches two commits deep.
12 lines
474 B
YAML
12 lines
474 B
YAML
name: Fetch history
|
|
description: >-
|
|
Fetches this commit's ancestry and main without file contents, so the change-detection diffs run on a shallow
|
|
checkout. The diffs read no other branch or tag. Needs a checkout first.
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- shell: bash
|
|
run: |
|
|
git fetch --no-tags --filter=blob:none --unshallow origin "$(git rev-parse HEAD)"
|
|
git fetch --no-tags --filter=blob:none origin +refs/heads/main:refs/remotes/origin/main
|