Update userbot.py #6
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
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 |