-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: ElytrA8 <[email protected]>
- Loading branch information
ElytrA8
committed
Nov 29, 2020
1 parent
a15ba96
commit d4ee037
Showing
1 changed file
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: setting up environment | ||
|
||
on: [push] | ||
|
||
env: | ||
username: Area69Lab | ||
jobs: | ||
build: | ||
runs-on: ubuntu-18.04 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@main | ||
|
||
- name: initialization | ||
continue-on-error: true | ||
run: | | ||
sudo rm -rf /usr/share/dotnet /etc/mysql /etc/php /etc/apt/sources.list.d | ||
docker rmi `docker images -q` | ||
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 "ElytrA8" | ||
git config --global user.email "[email protected]" | ||
sudo -E apt-get -y purge azure-cli ghc* zulu* hhvm llvm* firefox google* dotnet* powershell openjdk* mysql* php* | ||
sudo -E apt-get clean | ||
sudo apt install expect -y | ||
- name: cloning repo | ||
continue-on-error: true | ||
run: | | ||
expect -c " | ||
spawn git clone ${{ secrets.REPO }} source | ||
expect \"Username\" | ||
send \"${{ secrets.GHUSER }}\r\" | ||
expect \"Password\" | ||
send \"${{ secrets.GHPASS }}\r\" | ||
set timeout -1 | ||
catch wait result | ||
interact" | ||
- name: compilation | ||
continue-on-error: true | ||
run: | | ||
ls | ||
cd source | ||
npm install | ||
- name: running Docker | ||
timeout-minutes: 340 | ||
continue-on-error: true | ||
run: | | ||
cd source | ||
node server | ||
- name: Loop workflow | ||
continue-on-error: true | ||
run: | | ||
git clone https://github.com/$username/shellbot-workflow loop | ||
cd loop | ||
echo "1" >> loop.txt | ||
git add loop.txt | ||
git commit -m "Workflow : Loop" | ||
expect -c " | ||
spawn git push -f | ||
expect \"Username\" | ||
send \"${{ secrets.GHUSER }}\r\" | ||
expect \"Password\" | ||
send \"${{ secrets.GHPASS }}\r\" | ||
expect \"main -> main\" | ||
set timeout -10 | ||
interact" | ||