Skip to content

Commit 9db557f

Browse files
authored
fix: don't try to run sync job from downstreams (#397)
Fixes red X appearing on those repos, e.g. aspect-build/bazel-examples-gha@3a12238 Note, I tried using a matrix job to reduce duplication here, but it got very difficult to debug the SSH credentials not working. You can't just put both of them into the ssh-agent based on my testing. Not worth my time.
1 parent 3a12238 commit 9db557f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/sync_mirrors.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212
branches: ['main']
1313
jobs:
1414
push-cci:
15+
if: github.repository == 'aspect-build/bazel-examples'
1516
runs-on: ubuntu-latest
1617
steps:
1718
- name: Get a full history so all commits are present
@@ -25,6 +26,7 @@ jobs:
2526
ssh-add - <<< '${{ secrets.BAZEL_EXAMPLES_CCI_DEPLOY_TOKEN }}'
2627
git push git@github.com:aspect-build/bazel-examples-cci.git HEAD:main
2728
push-gha:
29+
if: github.repository == 'aspect-build/bazel-examples'
2830
runs-on: ubuntu-latest
2931
steps:
3032
- name: Get a full history so all commits are present

0 commit comments

Comments
 (0)