Skip to content
git-branch

GitHub Action

Synchronize Branches

v1.0.3 Latest version

Synchronize Branches

git-branch

Synchronize Branches

Synchronize branches in a multi-repo build

Installation

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

              

- name: Synchronize Branches

uses: xo-energy/action-synchronize-branches@v1.0.3

Learn more about this action in xo-energy/action-synchronize-branches

Choose a version

GitHub Action - Synchronize Branches

This GitHub Action (written in JavaScript) checks out a branch with the same name as the context (github.ref) branch in each repository in a directory. This helps synchronize multi-repo builds when working on related feature branches in different repositories.

Usage

Inputs

  • path: Directory containing the repositories to synchronize. Defaults to the workspace working directory.