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:
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: