Skip to content

Commit 3a12238

Browse files
authored
chore: mirror commits from bazel-examples to downstreams (#394)
1 parent 021a054 commit 3a12238

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/sync_mirrors.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# We maintain mirrors of this repo for demonstrating Aspect Workflows on other CI platforms.
2+
# This is documented in /.aspect/workflows/README.md.
3+
# The primary repo is tested on Buildkite because it's the best
4+
# https://buildkite.com/aspect/bazel-examples
5+
# When commits land there, we sync them to the others:
6+
# CircleCI: https://buildkite.com/aspect/bazel-examples-cci
7+
# GitHub Actions: https://buildkite.com/aspect/bazel-examples-gha
8+
name: Sync Mirrors
9+
on:
10+
workflow_dispatch:
11+
push:
12+
branches: ['main']
13+
jobs:
14+
push-cci:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Get a full history so all commits are present
18+
uses: actions/checkout@v4
19+
with:
20+
path: fresh-clone
21+
fetch-depth: 0
22+
- working-directory: fresh-clone
23+
run: |
24+
eval $(ssh-agent -s)
25+
ssh-add - <<< '${{ secrets.BAZEL_EXAMPLES_CCI_DEPLOY_TOKEN }}'
26+
git push git@github.com:aspect-build/bazel-examples-cci.git HEAD:main
27+
push-gha:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Get a full history so all commits are present
31+
uses: actions/checkout@v4
32+
with:
33+
path: fresh-clone
34+
fetch-depth: 0
35+
- working-directory: fresh-clone
36+
run: |
37+
eval $(ssh-agent -s)
38+
ssh-add - <<< '${{ secrets.BAZEL_EXAMPLES_GHA_DEPLOY_TOKEN }}'
39+
git push git@github.com:aspect-build/bazel-examples-gha.git HEAD:main

0 commit comments

Comments
 (0)