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