-
Notifications
You must be signed in to change notification settings - Fork 5
33 lines (33 loc) · 1010 Bytes
/
upm-ci.yml
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
name: upm-ci
on:
push:
branches:
- master
jobs:
split-upm:
name: split upm branch (force)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: split upm branch
run: |
git branch -d upm &> /dev/null || echo upm branch not found
git checkout master
git checkout -b 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 '[email protected]'
git commit -am "fix: Samples => Samples~"
fi
if [[ -d "Extension" ]]; then
git mv Extension Extension~
rm -f Extension.meta
git config --global user.name 'github-bot'
git config --global user.email '[email protected]'
git commit -am "fix: Extension => Extension~"
fi
git push -f -u origin upm