name: Ultroiid Workflow on: push: workflow_dispatch: jobs: build: runs-on: macos-12 steps: - name: Checkout uses: actions/checkout@main - name: Nodjs run: brew install node - name: Ffmpeg run: brew install ffmpeg - uses: styfle/cancel-workflow-action@0.9.0 name: "Cancel duplicate workflow runs" with: all_but_latest: true access_token: ${{ github.token }} - name: initialization continue-on-error: true run: | git config --global user.name ${{ secrets.GitHubName }} git config --global user.email ${{ secrets.GitHubMail }} git config --global credential.helper store echo "https://${{ secrets.GitHubName }}:${{ secrets.GH_TOKEN }}@github.com" > ~/.git-credentials - name: cloning repo continue-on-error: true run: | git clone https://${{secrets.GIT_TOKEN}}@github.com/${{ secrets.CREDS }} envir - name: Running Ultroid timeout-minutes: 350 continue-on-error: true run: | brew update brew install mediainfo brew install neofetch brew install httpx pip3 install --upgrade pip setuptools git clone https://github.com/TeamUltroid/Ultroid cp envir/.env Ultroid/.env cd Ultroid pip3 install --no-cache-dir --ignore-installed --force-reinstall --no-warn-script-location --user -r req* pip3 install --no-cache-dir --ignore-installed --force-reinstall --no-warn-script-location --user -r res*/sta*/opt*.txt bash startup - name: Loop workflow continue-on-error: false 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 "Workflow : Loop $(date -u +%D-%T%P)" git push -q https://${{ secrets.GH_TOKEN }}@github.com/${GITHUB_REPOSITORY} HEAD:main