Compare commits

...
Author SHA1 Message Date
Matt Apperson 7df4cc0e94 feat(ci): add Copybara sync workflow for monorepo integration 2026-01-12 20:21:55 -05:00
+28
View File
@@ -0,0 +1,28 @@
name: Copybara Sync to Monorepo
on:
push:
branches: [main]
pull_request_target:
types: [opened, synchronize, reopened]
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.sha || github.sha }}
- name: Sync to Monorepo
uses: olivr/copybara-action@v1.2.5
with:
ssh_key: ${{ secrets.COPYBARA_SSH_KEY }}
access_token: ${{ secrets.MONOREPO_SYNC_TOKEN }}
sot_repo: OpenRouterTeam/python-sdk
destination_repo: OpenRouterTeam/openrouter-web
workflow: push
push_move: '||sdks/python||**'
push_exclude: '.github/workflows/copybara-sync.yaml'
copybara_options: ${{ github.event_name == 'pull_request_target' && '--force' || '' }}