Update clean.yml
This commit is contained in:
parent
323292a3cf
commit
34f2d8d042
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue