Update clean.yml

This commit is contained in:
freearhey 2021-05-06 22:07:47 +03:00
parent 22f2c26bb5
commit f451ab9935
1 changed files with 13 additions and 4 deletions

View File

@ -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'