Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

marciomaciel/monorepo-split-github-action

 
 

Repository files navigation

GitHub Action for Monorepo Split

Based heavily on cpina/github-action-push-to-another-repository, with focus on automated monorepo splits.

Example

Split Packages With Tag

name: 'Monorepo Split With Tag'

on:
    push:
        branches:
            - master

jobs:
    monorepo_split_test_with_tag:
        runs-on: ubuntu-latest

        steps:
            -
                uses: actions/checkout@v2
                # this is required for "WyriHaximus/github-action-get-previous-tag" workflow
                # see https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches
                with:
                    fetch-depth: 0

            # see https://github.com/WyriHaximus/github-action-get-previous-tag
            -
                id: previous_tag
                uses: "WyriHaximus/github-action-get-previous-tag@master"

            -
                uses: "symplify/monorepo-split-github-action@master"
                env:
                    GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
                with:
                    # ↓ split "packages/easy-coding-standard" directory
                    package-directory: 'packages/easy-coding-standard'

                    # ↓ into https://github.com/symplify/easy-coding-standard repository
                    split-repository-organization: 'symplify'
                    split-repository-name: 'easy-coding-standard'

                    tag: ${{ steps.previous_tag.outputs.tag }}

                    # ↓ the user signed under the split commit
                    user-name: "kaizen-ci"
                    user-email: "[email protected]"

About

[READ-ONLY] Github Action for Monorepo Split

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 95.6%
  • Dockerfile 4.4%