Update auto-update.yml
This commit is contained in:
32
.github/workflows/auto-update.yml
vendored
32
.github/workflows/auto-update.yml
vendored
@@ -4,8 +4,26 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 * * *'
|
- cron: '0 0 * * *'
|
||||||
jobs:
|
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:
|
format:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
needs: remove-duplicates
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -176,13 +194,13 @@ jobs:
|
|||||||
run: npm install
|
run: npm install
|
||||||
- name: Format Playlists
|
- name: Format Playlists
|
||||||
run: node scripts/format.js --country=${{ matrix.country }}
|
run: node scripts/format.js --country=${{ matrix.country }}
|
||||||
# - name: Commit Changes
|
- name: Commit Changes
|
||||||
# run: |
|
run: |
|
||||||
# git config user.name github-actions
|
git config user.name github-actions
|
||||||
# git config user.email github-actions@github.com
|
git config user.email github-actions@github.com
|
||||||
# git add .
|
git add .
|
||||||
# git diff-index --quiet HEAD || git commit -m "[Bot] Format playlists"
|
git diff-index --quiet HEAD || git commit -m "[Bot] Format ${{ matrix.country }}.m3u"
|
||||||
# git push
|
git push
|
||||||
generate:
|
generate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: format
|
needs: format
|
||||||
|
Reference in New Issue
Block a user