Skip to content

Commit 12763ee

Browse files
committed
Seed pre-commit cache from main builds
1 parent f5e1843 commit 12763ee

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

‎.github/workflows/build.yaml‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,20 @@ concurrency:
3333
cancel-in-progress: true
3434
permissions: {}
3535
jobs:
36+
checks:
37+
if: ${{ github.ref == 'refs/heads/main' }}
38+
permissions:
39+
actions: read
40+
contents: read
41+
uses: rapidsai/shared-workflows/.github/workflows/checks.yaml@main
42+
with:
43+
# Seed the default-branch pre-commit cache without running checks that only apply to PRs.
44+
base-branch: main
45+
enable_check_size: false
46+
enable_check_generated_files: false
47+
enable_check_pr_job_dependencies: false
48+
enable_check_version_files_changed: false
49+
enable_check_version_against_tag: false
3650
docs-build-matrix:
3751
permissions:
3852
contents: read

‎.github/workflows/pr.yaml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ jobs:
3737
with:
3838
enable_check_generated_files: false
3939
ignored_pr_jobs: "telemetry-summarize"
40+
# Main builds seed this cache. PR merge refs can restore it but should not create
41+
# duplicate archives that are inaccessible to other PRs.
42+
pre-commit-cache-read-only: true
4043
permissions:
4144
contents: read
4245
docs-build-matrix:

0 commit comments

Comments
 (0)