-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (43 loc) · 1.68 KB
/
split.yml
File metadata and controls
47 lines (43 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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/checkout@v3.3.0
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/use-github-token@1.0.1
with:
authentication: 'Csardelacal:${{ secrets.PERSONAL_GITHUB_TOKEN }}'
user_name: 'César de la Cal Bretschneider'
user_email: 'cesar@magic3w.com'
# Cache the splitsh executable to speedup future runs
- name: Cache splitsh-lite
uses: actions/cache@v3.2.3
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