Skip to content

Commit aa6d2b3

Browse files
Add mirroring to render-oss (#4)
GitOrigin-RevId: c1f9916
1 parent e55fc2f commit aa6d2b3

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/mirror.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Mirror to Public Repository
2+
on:
3+
push:
4+
branches: [ main ]
5+
6+
jobs:
7+
mirror:
8+
runs-on: ubuntu-latest
9+
env:
10+
ENABLE_MIRROR: ${{ secrets.ENABLE_MIRROR }}
11+
12+
steps:
13+
- name: Checkout private repository
14+
uses: actions/checkout@v4
15+
if: ${{ env.ENABLE_MIRROR == 'true' }}
16+
with:
17+
# Must be set to avoid conflicting with the subsequent push
18+
# https://github.com/ad-m/github-push-action/issues/44#issuecomment-581706892
19+
fetch-depth: 0
20+
persist-credentials: false
21+
22+
- name: Push to public repository
23+
uses: ad-m/github-push-action@v0.8.0
24+
if: ${{ env.ENABLE_MIRROR == 'true' }}
25+
with:
26+
github_token: ${{ secrets.PUBLIC_REPO_TOKEN }}
27+
repository: render-oss/render-mcp-server
28+
branch: main
29+
force: true

0 commit comments

Comments
 (0)