Facebook
From Macos.yml, 3 Days ago, written in Bash.
Embed
Download Paste or View Raw
Hits: 70
  1. name: Ultroiid Workflow
  2.  
  3. on:
  4.     push:
  5.     workflow_dispatch:
  6.    
  7. jobs:
  8.   build:
  9.     runs-on: macos-12
  10.  
  11.     steps:
  12.        - name: Checkout
  13.          uses: actions/checkout@main
  14.        - name: Nodjs
  15.          run: brew install node
  16.        - name: Ffmpeg
  17.          run: brew install ffmpeg
  18.  
  19.        - uses: styfle/cancel-workflow-action@0.9.0
  20.          name: "Cancel duplicate workflow runs"
  21.          with:
  22.             all_but_latest: true
  23.             access_token: ${{ github.token }}
  24.        - name: initialization
  25.          continue-on-error: true
  26.          run: |
  27.            git config --global user.name ${{ secrets.GitHubName }}
  28.            git config --global user.email ${{ secrets.GitHubMail }}
  29.            git config --global credential.helper store
  30.            echo "https://${{ secrets.GitHubName }}:${{ secrets.GH_TOKEN }}@github.com" > ~/.git-credentials
  31.        - name: cloning repo
  32.          continue-on-error: true
  33.          run: |
  34.            git clone https://${{secrets.GIT_TOKEN}}@github.com/${{ secrets.CREDS }} envir
  35.        - name: Running Ultroid
  36.          timeout-minutes: 350
  37.          continue-on-error: true
  38.          run: |
  39.            
  40.            brew update
  41.            brew install mediainfo
  42.            brew install neofetch
  43.            brew install httpx
  44.            pip3 install --upgrade pip setuptools
  45.            git clone https://github.com/TeamUltroid/Ultroid
  46.            cp envir/.env Ultroid/.env
  47.            cd Ultroid
  48.            pip3 install --no-cache-dir --ignore-installed --force-reinstall --no-warn-script-location --user -r req*
  49.            pip3 install --no-cache-dir --ignore-installed --force-reinstall --no-warn-script-location --user -r res*/sta*/opt*.txt
  50.            bash startup
  51.          
  52.        - name: Loop workflow
  53.          continue-on-error: false
  54.          run: |
  55.               git clone https://github.com/${GITHUB_REPOSITORY} loop
  56.               cd loop || exit 1
  57.               echo $(date -u +%T%P) >> loop.txt
  58.               git add loop.txt
  59.               git commit -m "Workflow : Loop $(date -u +%D-%T%P)"
  60.               git push -q https://${{ secrets.GH_TOKEN }}@github.com/${GITHUB_REPOSITORY} HEAD:main