-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.22 KB
/
update.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
34
35
36
37
38
39
40
41
42
name: 'update-game-files'
on:
schedule:
- cron: '0 * * * *' # '*/5 * * * *'
jobs:
check_hash:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.SYNERGISM }}
- name: clone Pseudo-Corp/SynergismOfficial
run: |
git clone https://github.com/Pseudo-Corp/SynergismOfficial
cd SynergismOfficial
git checkout gh-pages
cd ..
- name: update_files
run: |
rm -rf ./src
mkdir src
mv SynergismOfficial/Pictures SynergismOfficial/translations SynergismOfficial/dist SynergismOfficial/Synergism.css SynergismOfficial/favicon.ico SynergismOfficial/index.html ./src
git status --porcelain --untracked-files=no
if [[ `git status --porcelain --untracked-files=no` ]]; then
git config user.name "KhafraDev"
git config user.email "maitken033380023@gmail.com"
git add src
git commit -m "Update Synergism"
git push
else
echo no changes
fi
- name: Cleanup
run: |
rm -rf SynergismOfficial