Skip to content

Commit 7556415

Browse files
committed
Run the bazel cache update cron jobs only for the upstream repository
I keep getting emails about this on my forked repository. Bug: b/432053706
1 parent d8a643c commit 7556415

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/update-bazel-cache.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99

1010
jobs:
1111
update-cvd-test-bazel-cache:
12+
if: ${{ github.repository_owner == 'google' }}
1213
runs-on: ubuntu-22.04-4core
1314
container:
1415
image: debian@sha256:9258a75a7e4323c9e5562b361effc84ee747920116d8adfc98a465a5cdc9150e # debian:bookworm-20250407 (amd64)
@@ -39,6 +40,7 @@ jobs:
3940
- name: Run unit tests
4041
run: cd base/cvd && bazel test --disk_cache=$HOME/bazel-disk-cache --sandbox_writable_path=$HOME --test_output=errors ...
4142
update-debian-package-bazel-cache:
43+
if: ${{ github.repository_owner == 'google' }}
4244
runs-on: ubuntu-22.04-4core
4345
container:
4446
image: debian@sha256:823849b88ae7e9b6ceb605fbdf51566499c234a9cfca8da1e4f22234fd65a09c # debian:bullseye-20250317 (amd64)

0 commit comments

Comments
 (0)