Update auto-update.yml

pull/3870/head
Aleksandr Statciuk 4 years ago
parent e0f646bebf
commit 7bd78d7bc0

@ -15,7 +15,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
branch: 'bot/auto-update' branch: 'bot/auto-update'
remove-duplicates: format:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: create-branch needs: create-branch
steps: steps:
@ -25,20 +25,20 @@ jobs:
ref: bot/auto-update ref: bot/auto-update
- name: Install Dependencies - name: Install Dependencies
run: npm install run: npm install
- name: Remove Duplicates - name: Format Playlists
run: node scripts/remove-duplicates.js run: node scripts/format.js
- name: Commit Changes - name: Commit Changes
uses: stefanzweifel/git-auto-commit-action@v4 uses: stefanzweifel/git-auto-commit-action@v4
with: with:
commit_message: '[Bot] Remove duplicates' commit_message: '[Bot] Formate playlists'
commit_user_name: iptv-bot commit_user_name: iptv-bot
commit_user_email: 84861620+iptv-bot[bot]@users.noreply.github.com commit_user_email: 84861620+iptv-bot[bot]@users.noreply.github.com
commit_author: 'iptv-bot[bot] <84861620+iptv-bot[bot]@users.noreply.github.com>' commit_author: 'iptv-bot[bot] <84861620+iptv-bot[bot]@users.noreply.github.com>'
branch: bot/auto-update branch: bot/auto-update
file_pattern: channels/* file_pattern: channels/*
format: remove-duplicates:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: remove-duplicates needs: format
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -46,12 +46,12 @@ jobs:
ref: bot/auto-update ref: bot/auto-update
- name: Install Dependencies - name: Install Dependencies
run: npm install run: npm install
- name: Format Playlists - name: Remove Duplicates
run: node scripts/format.js run: node scripts/remove-duplicates.js
- name: Commit Changes - name: Commit Changes
uses: stefanzweifel/git-auto-commit-action@v4 uses: stefanzweifel/git-auto-commit-action@v4
with: with:
commit_message: '[Bot] Formate playlists' commit_message: '[Bot] Remove duplicates'
commit_user_name: iptv-bot commit_user_name: iptv-bot
commit_user_email: 84861620+iptv-bot[bot]@users.noreply.github.com commit_user_email: 84861620+iptv-bot[bot]@users.noreply.github.com
commit_author: 'iptv-bot[bot] <84861620+iptv-bot[bot]@users.noreply.github.com>' commit_author: 'iptv-bot[bot] <84861620+iptv-bot[bot]@users.noreply.github.com>'
@ -59,7 +59,7 @@ jobs:
file_pattern: channels/* file_pattern: channels/*
sort: sort:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: format needs: remove-duplicates
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2

Loading…
Cancel
Save