Update clean.yml
This commit is contained in:
parent
22f2c26bb5
commit
f451ab9935
|
@ -165,20 +165,29 @@ jobs:
|
|||
# zm,
|
||||
# unsorted
|
||||
]
|
||||
max-parallel: 1
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Install Dependencies
|
||||
run: npm install
|
||||
- name: Remove Broken Links
|
||||
run: node scripts/clean.js --country=${{ matrix.country }}
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ${{ matrix.country }}.m3u
|
||||
path: channels/${{ matrix.country }}.m3u
|
||||
pull-request:
|
||||
needs: clean
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- uses: actions/download-artifact@v2
|
||||
with:
|
||||
path: .
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v3
|
||||
with:
|
||||
title: '[Bot] Remove broken links'
|
||||
body: |
|
||||
This pull request is created automatically.
|
||||
commit-message: 'Update ${{ matrix.country }}.m3u'
|
||||
|
|
Loading…
Reference in New Issue