Skip to content

Commit 8807dc7

Browse files
committed
ci: build the matrix from the default branch at job start
1 parent ddd4c0f commit 8807dc7

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/compat-check.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,14 @@ jobs:
5858
has_ios: ${{ steps.matrix.outputs.has_ios }}
5959
has_android: ${{ steps.matrix.outputs.has_android }}
6060
steps:
61+
# The default branch as it is when this job starts, so results committed
62+
# by a run that finished while this one was queued are already recorded.
6163
- uses: actions/checkout@v4
64+
with:
65+
ref: ${{ github.event.repository.default_branch }}
6266
- uses: actions/setup-node@v4
6367
with:
6468
node-version: 22
65-
# Results still waiting in an unmerged results PR count as recorded, so a
66-
# re-run while that PR is open does not rebuild them.
67-
- name: Include pending results
68-
run: |
69-
if git fetch origin ci/verified-results 2>/dev/null; then
70-
git checkout origin/ci/verified-results -- data/verified
71-
echo "included pending results from ci/verified-results"
72-
fi
7369
- id: matrix
7470
env:
7571
MANUAL_PLATFORM: ${{ inputs.platform }}

0 commit comments

Comments
 (0)