Skip to content

Commit 5afbbfb

Browse files
committed
Add GitHub action to split upm branch
1 parent de015ae commit 5afbbfb

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
split-upm:
8+
name: split upm branch (force)
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
with:
13+
fetch-depth: 0
14+
- name: split upm branch
15+
run: |
16+
git branch -d upm &> /dev/null || echo upm branch not found
17+
git subtree split -P "$PKG_ROOT" -b upm
18+
git checkout upm
19+
if [[ -d "Samples" ]]; then
20+
git mv Samples Samples~
21+
rm -f Samples.meta
22+
git config --global user.name 'github-bot'
23+
git config --global user.email 'github-bot@users.noreply.github.com'
24+
git commit -am "Fix samples folder"
25+
fi
26+
git push -f -u origin upm
27+
env:
28+
PKG_ROOT: Packages/com.rfadeev.unityforge.animcallbacks

0 commit comments

Comments
 (0)