Skip to content
copy

GitHub Action

Copybara Action - Ahoy Labs

v0.0.1 Latest version

Copybara Action - Ahoy Labs

copy

Copybara Action - Ahoy Labs

Transform and move code between repositories. Start with ZERO config and 100% customizable

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Copybara Action - Ahoy Labs

uses: ahoylabs/[email protected]

Learn more about this action in ahoylabs/copybara-action

Choose a version

Copybara Action

Google's Copybara is a great tool for transforming and moving code between repositories.

This action comes with sensible defaults to make it very easy for you to use Copybara with Github but is also 100% customizable so you can use it with your own config, your own Docker image.

♾️ Default flow

 Source of Truth                  Destination

+---------------+   Copybara   +---------------+
|     Branch    +------------> |     Branch    |
+-------+-------+              +---------------+
        ^
        |
        |
+-------+-------+   Copybara   +---------------+
| Pull Requests | <------------+ Pull Requests |
+---------------+              +---------------+
  • One repo acts as the Source of Truth (SoT)
  • One other repo acts as the destination
  • SoT branch is always pushed by Copybara to destination branch
  • Pull Requests can be created on both SoT and destination
  • Pull Requests created on destination are always copied by Copybara to SoT

This is the flow used for this action's basic usage, you can make it whatever you want it to be in advanced usage.

💬 Support