Update auto-update.yml

pull/2715/head
freearhey 3 years ago
parent 2201a2a013
commit cc8f7546f8

@ -4,8 +4,26 @@ on:
schedule:
- cron: '0 0 * * *'
jobs:
remove-duplicates:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Dependencies
run: npm install
- name: Remove Duplicates
run: node scripts/remove-duplicates.js
- name: Commit Changes
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git add .
git diff-index --quiet HEAD || git commit -m "[Bot] Remove duplicates"
git pull
git push
format:
runs-on: ubuntu-latest
needs: remove-duplicates
continue-on-error: true
strategy:
matrix:
@ -176,13 +194,13 @@ jobs:
run: npm install
- name: Format Playlists
run: node scripts/format.js --country=${{ matrix.country }}
# - name: Commit Changes
# run: |
# git config user.name github-actions
# git config user.email github-actions@github.com
# git add .
# git diff-index --quiet HEAD || git commit -m "[Bot] Format playlists"
# git push
- name: Commit Changes
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git add .
git diff-index --quiet HEAD || git commit -m "[Bot] Format ${{ matrix.country }}.m3u"
git push
generate:
runs-on: ubuntu-latest
needs: format

Loading…
Cancel
Save