Subtree Split for composer packages #18
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Subtree Split for composer packages | |
on: | |
push: | |
# Only trigger for specific branches or changes in specific paths. | |
branches: | |
- '*' | |
paths: | |
- src/** | |
# Tag push events should be ignored, they will be handled with the create event below. | |
tags-ignore: | |
- '*' | |
create: | |
tags: | |
- 'v*' | |
delete: | |
tags: | |
- 'v*' | |
jobs: | |
sync_commits: | |
runs-on: ubuntu-latest | |
name: Sync commits | |
if: github.repository == 'ueberbit/uebertool' # Execute this workflow job only on the main repository. | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- uses: webfactory/ssh-agent@v0.8.0 | |
with: | |
ssh-private-key: ${{ secrets.SUBTREE_SPLIT_PRIVATE_KEY }} | |
# Cache the splitsh executable to speedup future runs | |
- name: Cache splitsh-lite | |
uses: actions/cache@v3 | |
with: | |
path: './splitsh' | |
key: '${{ runner.os }}-splitsh-v101' | |
# Sync commits and tags for the configured subtree splits | |
- name: subtree split | |
uses: acrobat/subtree-splitter@v1.1.4 | |
with: | |
config-path: .github/subtree.json # Reference the location where you saved your config file |