Update clean.yml

This commit is contained in:
freearhey 2021-05-06 20:10:05 +03:00
parent 323292a3cf
commit 34f2d8d042
1 changed files with 4 additions and 10 deletions

View File

@ -4,7 +4,6 @@ on:
jobs: jobs:
update: update:
runs-on: ubuntu-latest runs-on: ubuntu-latest
continue-on-error: true
strategy: strategy:
matrix: matrix:
country: [ country: [
@ -166,26 +165,21 @@ jobs:
# zm, # zm,
# unsorted # unsorted
] ]
fail-fast: false
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Create Branch with:
run: | ref: bot/patch-1
git config user.name github-actions
git config user.email github-actions@github.com
git checkout -b bot/patch-1
- 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 }}
- name: Commit Changes - name: Commit Changes
run: | run: |
git config user.name github-actions
git config user.email github-actions@github.com
git add . git add .
git diff-index --quiet HEAD || git commit -m "[Bot] Update ${{ matrix.country }}.m3u" 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 pull
git push git push
# create-pr: # create-pr: