-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 978 Bytes
/
main.yml
File metadata and controls
34 lines (34 loc) · 978 Bytes
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
name: Unity Package CI
on:
push:
branches:
- master
env:
PKG_ROOT: Packages/com.lean.touch.extensions.screenareas
jobs:
split-upm:
name: Split upm branch (force)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Split package folder to upm branch
run: |
git subtree split -P "$PKG_ROOT" -b upm
- name: Create samples~ folder
run: |
git checkout upm
if [[ -d "Samples" ]]; then
git mv Samples Samples~
rm -f Samples.meta
git config --global user.name 'github-bot'
git config --global user.email 'github-bot@users.noreply.github.com'
git commit -am "fix: Samples => Samples~"
fi
- name: Push changes to upm branch
uses: ad-m/github-push-action@master
with:
force: true
branch: upm
github_token: ${{ secrets.GITHUB_TOKEN }}