Skip to content

xedi/action-subtree-sync

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This action synchronizes a subtree split-repository with it's parent.

It's primary use is to create a split branch and push it to the parent, then tag it.

The action requires the following inputs:

Key Description
subtree Subtree repository name (including owner)
subtree_deploy_key A public key part of a Deploy Key on the subtree repository
split_prefix The directory to perform the split on

As described above you will need to create a Deploy Key, place the the private part in the Deploy Key settings of the subtree repository; and the public part in the Secrets settings of the parent repository.

Example usage

name: Release Subtree

on:
  push:
    tags:
      - '*'

jobs:
  checkout:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v1
  release:
    runs-on: ubuntu-latest
    needs: checkout
    steps:
      - name: Release
        uses: xedi/action-subtree-sync@1.0.0
        with:
          subtree: 'owner/repository'
          subtree_deploy_key: ${{ secrets.DEPLOY_KEY }}
          split_prefix: 'src/directory'