Skip to content

Commit

Permalink
Cleanup source-branch option
Browse files Browse the repository at this point in the history
  • Loading branch information
acrobat committed Oct 29, 2021
1 parent b21c94c commit 5d4be4c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ This actions synchronizes a monolithic repository to standalone repositories by
> Specify using `with` keyword
* `config-path` - **(Required)** Location of the subtree split mapping configuration
* `source-branch` - Source branch to execute the subtree split from

### Example workflow

Expand Down Expand Up @@ -78,15 +77,9 @@ jobs:
path: './splitsh'
key: '${{ runner.os }}-splitsh-v101'

# Retrieve the branch name of the branch that triggered the build.
- name: Extract branch name
id: vars
run: echo ::set-output name=branch_name::${GITHUB_REF#refs/*/}

# Sync commits and tags for the configured subtree splits
- name: subtree split
uses: acrobat/subtree-splitter@v1
with:
config-path: .github/subtree-splitter-config.json # Reference the location where you saved your config file
source-branch: ${{ steps.vars.outputs.branch_name }} # The branch name is used when syncing commits, this is ignored when a tag is pushed/deleted
```
3 changes: 0 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ inputs:
config-path:
required: true
description: 'Configuration file path'
source-branch:
description: 'Branch to split from'
required: true
runs:
using: 'node12'
main: 'dist/index.js'
Expand Down
2 changes: 0 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ async function downloadSplitsh(): Promise<void> {
return;
}

console.log('Found branch: '+branch);

// On push sync commits
await Promise.all(subtreeSplits.map(async (split: subtreeSplit) => {
await ensureRemoteExists(split.name, split.target);
Expand Down

0 comments on commit 5d4be4c

Please sign in to comment.