From 34f2d8d04200393b95a26210c542af3eb5f4f7da Mon Sep 17 00:00:00 2001 From: freearhey Date: Thu, 6 May 2021 20:10:05 +0300 Subject: [PATCH] Update clean.yml --- .github/workflows/clean.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/clean.yml b/.github/workflows/clean.yml index 3636eb71ff..209f243b80 100644 --- a/.github/workflows/clean.yml +++ b/.github/workflows/clean.yml @@ -4,7 +4,6 @@ on: jobs: update: runs-on: ubuntu-latest - continue-on-error: true strategy: matrix: country: [ @@ -166,26 +165,21 @@ jobs: # zm, # unsorted ] - fail-fast: false steps: - name: Checkout uses: actions/checkout@v2 - - name: Create Branch - run: | - git config user.name github-actions - git config user.email github-actions@github.com - git checkout -b bot/patch-1 + with: + ref: bot/patch-1 - name: Install Dependencies run: npm install - name: Remove Broken Links run: node scripts/clean.js --country=${{ matrix.country }} - 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] Update ${{ matrix.country }}.m3u" - - name: Push Changes - run: | - git branch --set-upstream-to=origin/bot/patch-1 bot/patch-1 git pull git push # create-pr: