Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
package

GitHub Action

GitHub Action to Push Subdirectories to Another Repo

v0.0.1

GitHub Action to Push Subdirectories to Another Repo

package

GitHub Action to Push Subdirectories to Another Repo

Automatically push subdirectories in a monorepo to their own repositories

Installation

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

              

- name: GitHub Action to Push Subdirectories to Another Repo

uses: johno/actions-push-subdirectories@v0.0.1

Learn more about this action in johno/actions-push-subdirectories

Choose a version

Push Subdirectories

GitHub Action to push subdirectories to separate repositories.

Why?

When building Gatsby Themes with a monorepo it's common to need to be able to develop your corresponding starters in the same repo as well. This allows you to automatically push your starters to their own repo so they can be used with gatsby new.

Usage

workflow "Update starters" {
  on = "push"
  resolves = ["johno/actions-push-subdirectories"]
  args = "examples"
}

Related

This code is adapted and modified from Gatsby core.