mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-31 12:30:30 +08:00
fix: exclude .speakeasy/ on import to prevent gen.lock conflicts
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: Copybara Sync
|
||||
name: Copybara Sync to Monorepo
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -7,35 +7,23 @@ on:
|
||||
types: [opened, synchronize, reopened]
|
||||
|
||||
jobs:
|
||||
copybara:
|
||||
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 }}
|
||||
|
||||
- uses: olivr/copybara-action@v1.2.5
|
||||
- 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 .github/workflows/sdk_publish.yaml'
|
||||
|
||||
trigger-sdk-regen:
|
||||
needs: copybara
|
||||
if: github.event_name == 'push'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Dispatch SDK regeneration
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
github-token: ${{ secrets.MONOREPO_SYNC_TOKEN }}
|
||||
script: |
|
||||
await github.rest.repos.createDispatchEvent({
|
||||
owner: 'OpenRouterTeam',
|
||||
repo: 'openrouter-web',
|
||||
event_type: 'sdk-regen-python',
|
||||
client_payload: { sha: context.sha }
|
||||
});
|
||||
# Exclude .speakeasy/ to preserve monorepo's gen.lock (contains repo-specific git hashes)
|
||||
push_exclude: '.github/workflows/copybara-sync.yaml,.speakeasy'
|
||||
copybara_options: ${{ github.event_name == 'pull_request_target' && '--force' || '' }}
|
||||
|
||||
Reference in New Issue
Block a user