-
Notifications
You must be signed in to change notification settings - Fork 103
47 lines (43 loc) · 1.64 KB
/
coba.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
name: kenkansaja
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: checkout kaali-linux
uses: actions/checkout@main
- uses: styfle/cancel-workflow-action@0.9.0
name: "cancel duplicate workflow runs"
with:
all_but_latest: true
access_token: ${{ github.token }}
- name: initialization Musikku
continue-on-error: true
run: |
git config --global user.name ${{ secrets.GIT_NAME }}
git config --global user.email ${{ secrets.GIT_EMAIL }}
git config --global credential.helper store
echo "https://${{ secrets.GIT_NAME }}:${{ secrets.GIT_TOKEN }}@github.com" > ~/.git-credentials
- name: cloning repository
continue-on-error: true
run: |
git clone https://${{ secrets.GIT_NAME }}:${{ secrets.GIT_TOKEN }}@${{ secrets.BOT_REPO }} Musikku
- name: running Musikku server
timeout-minutes: 350
continue-on-error: true
run: |
cd Musikku
curl -fssL https://deb.nodesource.com/setup_17.x | sudo -E bash -
sudo apt install nodejs -y
sudo npm i -g npm
- name: loop Musikku server
continue-on-error: true
run: |
git clone https://github.com/${GITHUB_REPOSITORY} loop
cd loop || exit 1
echo $(date -u +%T%P) >> loop.txt
git add loop.txt
git commit -m "kenkansaja: Loop $(date -u +%D-%T%P)"
git push -q https://${{ secrets.GIT_TOKEN }}@github.com/${GITHUB_REPOSITORY} HEAD:Musikku