Move the "sort" up

pull/3893/head
Aleksandr Statciuk 4 years ago
parent 0d3d6b48fd
commit 65a8d93d6d

@ -38,7 +38,7 @@ jobs:
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/*
remove-duplicates: sort:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: format needs: format
steps: steps:
@ -48,20 +48,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: Sort Channels
run: node scripts/remove-duplicates.js run: node scripts/sort.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] Sort channels'
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/*
sort: remove-duplicates:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: remove-duplicates needs: sort
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -69,12 +69,12 @@ jobs:
ref: bot/auto-update ref: bot/auto-update
- name: Install Dependencies - name: Install Dependencies
run: npm install run: npm install
- name: Sort Channels - name: Remove Duplicates
run: node scripts/sort.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] Sort channels' 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>'
@ -82,7 +82,7 @@ jobs:
file_pattern: channels/* file_pattern: channels/*
filter: filter:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: sort needs: remove-duplicates
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2

Loading…
Cancel
Save