mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-13 10:30:03 -04:00
Update auto-update.yml
This commit is contained in:
parent
4865fb3b65
commit
a92d9acb19
1 changed files with 69 additions and 90 deletions
159
.github/workflows/auto-update.yml
vendored
159
.github/workflows/auto-update.yml
vendored
|
@ -20,90 +20,6 @@ jobs:
|
||||||
format:
|
format:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: create-branch
|
needs: create-branch
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
ref: bot/auto-update
|
|
||||||
- name: Install Dependencies
|
|
||||||
run: npm install
|
|
||||||
- name: Format Playlists
|
|
||||||
run: node scripts/format.js
|
|
||||||
- name: Commit Changes
|
|
||||||
uses: stefanzweifel/git-auto-commit-action@v4
|
|
||||||
with:
|
|
||||||
commit_message: '[Bot] Formate playlists'
|
|
||||||
commit_user_name: iptv-bot
|
|
||||||
commit_user_email: 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
|
|
||||||
file_pattern: channels/*
|
|
||||||
sort:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: format
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
ref: bot/auto-update
|
|
||||||
- name: Install Dependencies
|
|
||||||
run: npm install
|
|
||||||
- name: Sort Channels
|
|
||||||
run: node scripts/sort.js
|
|
||||||
- name: Commit Changes
|
|
||||||
uses: stefanzweifel/git-auto-commit-action@v4
|
|
||||||
with:
|
|
||||||
commit_message: '[Bot] Sort channels'
|
|
||||||
commit_user_name: iptv-bot
|
|
||||||
commit_user_email: 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
|
|
||||||
file_pattern: channels/*
|
|
||||||
remove-duplicates:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: sort
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
ref: bot/auto-update
|
|
||||||
- name: Install Dependencies
|
|
||||||
run: npm install
|
|
||||||
- name: Remove Duplicates
|
|
||||||
run: node scripts/remove-duplicates.js
|
|
||||||
- name: Commit Changes
|
|
||||||
uses: stefanzweifel/git-auto-commit-action@v4
|
|
||||||
with:
|
|
||||||
commit_message: '[Bot] Remove duplicates'
|
|
||||||
commit_user_name: iptv-bot
|
|
||||||
commit_user_email: 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
|
|
||||||
file_pattern: channels/*
|
|
||||||
filter:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: remove-duplicates
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
ref: bot/auto-update
|
|
||||||
- name: Install Dependencies
|
|
||||||
run: npm install
|
|
||||||
- name: Filter Playlists
|
|
||||||
run: node scripts/filter.js
|
|
||||||
- name: Commit Changes
|
|
||||||
uses: stefanzweifel/git-auto-commit-action@v4
|
|
||||||
with:
|
|
||||||
commit_message: '[Bot] Filter channels'
|
|
||||||
commit_user_name: iptv-bot
|
|
||||||
commit_user_email: 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
|
|
||||||
file_pattern: channels/*
|
|
||||||
detect-resolution:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: filter
|
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
@ -279,8 +195,8 @@ jobs:
|
||||||
ref: bot/auto-update
|
ref: bot/auto-update
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: npm install
|
run: npm install
|
||||||
- name: Detect Resolution
|
- name: Format Playlists
|
||||||
run: node scripts/detect-resolution.js --country=${{ matrix.country }}
|
run: node scripts/format.js --country=${{ matrix.country }} --status --resolution --debug
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
@ -288,7 +204,7 @@ jobs:
|
||||||
path: channels/${{ matrix.country }}.m3u
|
path: channels/${{ matrix.country }}.m3u
|
||||||
commit-changes:
|
commit-changes:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: detect-resolution
|
needs: format
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
@ -302,7 +218,70 @@ jobs:
|
||||||
- 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] Detect resolution'
|
commit_message: '[Bot] Format playlists'
|
||||||
|
commit_user_name: iptv-bot
|
||||||
|
commit_user_email: 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
|
||||||
|
file_pattern: channels/*
|
||||||
|
remove-duplicates:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: commit-changes
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: bot/auto-update
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: npm install
|
||||||
|
- name: Remove Duplicates
|
||||||
|
run: node scripts/remove-duplicates.js
|
||||||
|
- name: Commit Changes
|
||||||
|
uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
|
with:
|
||||||
|
commit_message: '[Bot] Remove duplicates'
|
||||||
|
commit_user_name: iptv-bot
|
||||||
|
commit_user_email: 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
|
||||||
|
file_pattern: channels/*
|
||||||
|
sort:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: remove-duplicates
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: bot/auto-update
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: npm install
|
||||||
|
- name: Sort Channels
|
||||||
|
run: node scripts/sort.js
|
||||||
|
- name: Commit Changes
|
||||||
|
uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
|
with:
|
||||||
|
commit_message: '[Bot] Sort channels'
|
||||||
|
commit_user_name: iptv-bot
|
||||||
|
commit_user_email: 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
|
||||||
|
file_pattern: channels/*
|
||||||
|
filter:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: sort
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: bot/auto-update
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: npm install
|
||||||
|
- name: Filter Playlists
|
||||||
|
run: node scripts/filter.js
|
||||||
|
- name: Commit Changes
|
||||||
|
uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
|
with:
|
||||||
|
commit_message: '[Bot] Filter 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>'
|
||||||
|
@ -310,7 +289,7 @@ jobs:
|
||||||
file_pattern: channels/*
|
file_pattern: channels/*
|
||||||
generate:
|
generate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: commit-changes
|
needs: filter
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
@ -376,6 +355,7 @@ jobs:
|
||||||
branch: bot/auto-update
|
branch: bot/auto-update
|
||||||
file_pattern: README.md
|
file_pattern: README.md
|
||||||
pull-request:
|
pull-request:
|
||||||
|
if: ${{ github.ref == 'refs/heads/master' }}
|
||||||
needs: update-readme
|
needs: update-readme
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -408,7 +388,6 @@ jobs:
|
||||||
pull-request-number: ${{ steps.pr.outputs.pr_number }}
|
pull-request-number: ${{ steps.pr.outputs.pr_number }}
|
||||||
merge-method: squash
|
merge-method: squash
|
||||||
- name: Approve Pull Request
|
- name: Approve Pull Request
|
||||||
if: github.ref == 'refs/heads/master'
|
|
||||||
uses: juliangruber/approve-pull-request-action@v1
|
uses: juliangruber/approve-pull-request-action@v1
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.PAT }}
|
github-token: ${{ secrets.PAT }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue