From f451ab99350389cd49fa3685a9fc69fcb295d037 Mon Sep 17 00:00:00 2001 From: freearhey Date: Thu, 6 May 2021 22:07:47 +0300 Subject: [PATCH] Update clean.yml --- .github/workflows/clean.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/clean.yml b/.github/workflows/clean.yml index 78980eb2a..825e808e3 100644 --- a/.github/workflows/clean.yml +++ b/.github/workflows/clean.yml @@ -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'