Skip to content

Commit bdcdb95

Browse files
authored
Run check workflow on push to main to populate cache (#4075)
## Why Only if a cache is stored from a run from the main branch will it be picked up in PRs and the merge queue. After splitting out the lint job into a dedicated workflow (#4013), it no longer ran on the main branch, and we no longer had cache hits for the lint jobs on PRs and the merge queue.
1 parent d576243 commit bdcdb95

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/check.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ on:
55
types: [opened, synchronize]
66
merge_group:
77
types: [checks_requested]
8+
push:
9+
# Always run on push to main. The build cache can only be reused
10+
# if it was saved by a run from the repository's default branch.
11+
# The run result will be identical to that from the merge queue
12+
# because the commit is identical, yet we need to perform it to
13+
# seed the build cache.
14+
branches:
15+
- main
816

917
jobs:
1018
lint:

0 commit comments

Comments
 (0)