perf(checks): accelerate fresh changed gates (#121805)

This commit is contained in:
Josh Avant
2026-08-10 21:30:24 -05:00
committed by GitHub
parent b953cb2597
commit bdd35432dd
6 changed files with 120 additions and 30 deletions
+4 -2
View File
@@ -45,7 +45,9 @@ jobs:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: ${{ github.event_name == 'pull_request' && '2' || '0' }}
# Dispatch hydrates the pinned workflow ref; changed-gate sync later
# reconstructs its exact base and final tree. PR validation keeps both commits.
fetch-depth: ${{ github.event_name == 'pull_request' && '2' || '1' }}
persist-credentials: false
- name: Setup Node environment
uses: ./.github/actions/setup-node-env
@@ -65,7 +67,7 @@ jobs:
- name: Prepare Testbox shell
uses: ./.github/actions/prepare-testbox-shell
with:
base-ref: ${{ github.event.pull_request.base.sha || 'refs/remotes/origin/main' }}
base-ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || 'HEAD' }}
- name: Hydrate Testbox provider env helper
shell: bash