Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xedi/action-subtree-sync
GitHub Action to Sync subtrees with a source project
https://github.com/xedi/action-subtree-sync
actions git subtree subtree-split
Last synced: 2 days ago
JSON representation
GitHub Action to Sync subtrees with a source project
- Host: GitHub
- URL: https://github.com/xedi/action-subtree-sync
- Owner: xedi
- License: mit
- Created: 2019-10-14T11:22:30.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-16T12:44:16.000Z (about 5 years ago)
- Last Synced: 2024-10-19T20:14:36.907Z (20 days ago)
- Topics: actions, git, subtree, subtree-split
- Language: Shell
- Size: 3.91 KB
- Stars: 11
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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 onAs 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
```yaml
name: Release Subtreeon:
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/[email protected]
with:
subtree: 'owner/repository'
subtree_deploy_key: ${{ secrets.DEPLOY_KEY }}
split_prefix: 'src/directory'
```