update copybara wf #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Copybara | |
on: | |
workflow_dispatch: | |
pull_request_target: | |
push: | |
branches: ["alternative-main"] | |
jobs: | |
copybara: | |
name: Sync switchboard-sdk repo with sbv3 main branch | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
# Checkout as many commits as needed for the diff | |
fetch-depth: 2 | |
- name: Run Copybara | |
uses: olivr/[email protected] | |
with: | |
ssh_key: ${{ secrets.COPYBARA_SSH_KEY }} | |
access_token: ${{ secrets.COPYBARA_PAT }} | |
custom_config: copy.bara.sky | |
workflow: default | |
copybara_options: --force --init-history |