-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 1.24 KB
/
hutao.yaml
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
name: Hu Tao - DC Bot
on: push
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 525600
steps:
- name: Checkouts
uses: actions/checkout@master
- name: Clone source
continue-on-error: true
timeout-minutes: 340
run: |
git clone https://${{ secrets.GH_TOKEN }}:${{ secrets.GH_TOKEN }}@github.com/${{ secrets.GIT }} java
cd java
java -jar *.jar
- name: Test
continue-on-error: true
timeout-minutes: 1
run: |
git config --global user.email "[email protected]"
git config --global user.name "Velosh"
git clone https://github.com/HuTaoNetwork/Workflow a; cd a
git commit --allow-empty -s -m "[LOOP] Commit"
- name: Reruns
continue-on-error: true
timeout-minutes: 5
run: |
sudo apt-get install expect -y
cd a
expect -c "
spawn git push -f
expect \"Username\"
send \"velosh\r\"
expect \"Password\"
send \"${{ secrets.PASSWORD }}\r\"
expect \"master -> master\"
set timeout -10
interact"