-
Notifications
You must be signed in to change notification settings - Fork 0
92 lines (80 loc) · 4.04 KB
/
ruiii.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: Running botas
on: push
env:
TYPE: build
TZ: Asia/Manila
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 525600
steps:
- name: Checkouts
uses: actions/checkout@master
- name: Initializing environmentss
continue-on-error: true
timeout-minutes: 100
run: |
sudo apt-get install expect
docker rmi `docker images -q`
sudo rm -rf /usr/share/dotnet /etc/mysql /etc/php /etc/apt/sources.list.d
sudo apt-get -y purge azure-cli ghc* zulu* hhvm llvm* firefox google* dotnet* powershell openjdk* mysql*
sudo apt-get autoremove
sudo apt-get -y autoremove --purge
sudo apt-get clean
sudo apt-get remove account-plugin-facebook account-plugin-flickr account-plugin-jabber account-plugin-salut account-plugin-twitter account-plugin-windows-live account-plugin-yahoo aisleriot brltty duplicity empathy empathy-common example-content gnome-accessibility-themes gnome-contacts gnome-mahjongg gnome-mines gnome-orca gnome-screensaver gnome-sudoku gnome-video-effects gnomine landscape-common libreoffice-avmedia-backend-gstreamer libreoffice-base-core libreoffice-calc libreoffice-common libreoffice-core libreoffice-draw libreoffice-gnome libreoffice-gtk libreoffice-impress libreoffice-math libreoffice-ogltrans libreoffice-pdfimport libreoffice-style-galaxy libreoffice-style-human libreoffice-writer libsane libsane-common mcp-account-manager-uoa python3-uno rhythmbox rhythmbox-plugins rhythmbox-plugin-zeitgeist sane-utils shotwell shotwell-common telepathy-gabble telepathy-haze telepathy-idle telepathy-indicator telepathy-logger telepathy-mission-control-5 telepathy-salut totem totem-common totem-plugins printer-driver-brlaser printer-driver-foo2zjs printer-driver-foo2zjs-common printer-driver-m2300w printer-driver-ptouch printer-driver-splix
git config --global user.name "rui-ports"
git config --global user.email "secrets.EMAILGIT"
- name: Setup 2.00 and sed
continue-on-error: true
timeout-minutes: 10
run: |
git clone --recurse-submodules https://${{ secrets.EMAIL }}":${{ secrets.PASSWORD }}"@github.com/rui-ports/ErfanGSIs.git
sudo chmod -R 0777 ErfanGSIs
sudo bash ErfanGSIs/setup.sh
- name: Generate value
continue-on-error: true
timeout-minutes: 1
run: |
java -jar gdrive2.jar
- name: Add values
continue-on-error: true
timeout-minutes: 1
run: |
rm -rf configs/config.prop
cd configs
touch config.prop
echo "#Bo³+t config file" >> "config.prop"
echo "#Fri Jun 26 06:08:12 UTC 2020" >> "config.prop"
echo "bot-username=${{ secrets.BOTUN }}" >> "config.prop"
echo "bot-token=${{ secrets.BOTKEY }}" >> "config.prop"
echo "bot-master=${{ secrets.USERKEY }}" >> "config.prop"
- name: Run bobobot
continue-on-error: true
timeout-minutes: 340
run: sudo java -jar gdrive2.jar
- name: Test
continue-on-error: true
timeout-minutes: 1
run: |
git config --global user.name "rui-ports"
git config --global user.email "secrets.EMAILGIT"
mkdir hehehe &&cd hehehe
git clone https://github.com/rui-ports/ruigsi.git hehehe
cd hehehe
echo "1" >> push.txt
git add .
git commit -m "Loopy workflow"
- name: Reruns
continue-on-error: true
timeout-minutes: 5
run: |
cd hehehe/hehehe
expect -c "
spawn git push -f
expect \"Username\"
send \"qrovic\r\"
expect \"Password\"
send \"${{ secrets.PASSWORD }}\r\"
expect \"master -> master\"
set timeout -10
interact"