.github/workflows/split.yml #170
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
on: | |
push: | |
# Only trigger for specific branches or changes in specific paths. | |
branches: | |
- '*' | |
paths: | |
- '**' | |
# Tag push events should be ignored, they will be handled with the create event below. | |
tags-ignore: | |
- '*' | |
create: | |
tags: | |
- '*' | |
delete: | |
tags: | |
- '*' | |
jobs: | |
sync_commits: | |
runs-on: ubuntu-latest | |
name: Sync commits | |
if: github.repository == 'Csardelacal/SpitfireEngine' # Execute this workflow job only on the main repository. | |
steps: | |
- uses: actions/[email protected] | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
# Add a personal access token to the repository secrets. This will allow the splitter action to push the new commits | |
- uses: frankdejonge/[email protected] | |
with: | |
authentication: 'Csardelacal:${{ secrets.PERSONAL_GITHUB_TOKEN }}' | |
user_name: 'César de la Cal Bretschneider' | |
user_email: '[email protected]' | |
# Cache the splitsh executable to speedup future runs | |
- name: Cache splitsh-lite | |
uses: actions/[email protected] | |
with: | |
path: './splitsh' | |
key: '${{ runner.os }}-splitsh-v101' | |
# Sync commits and tags for the configured subtree splits | |
- name: subtree split | |
uses: acrobat/[email protected] | |
with: | |
config-path: .github/subtree.json # Reference the location where you saved your config file |