diff --git a/.github/workflows/_check.yml b/.github/workflows/_check.yml index 341e0f8d..e2e0f0ef 100644 --- a/.github/workflows/_check.yml +++ b/.github/workflows/_check.yml @@ -8,12 +8,24 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Download channels from API + with: + fetch-depth: 2 + - name: Download data from API run: | mkdir -p scripts/data curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - id: files - uses: jitterbit/get-changed-files@v1 - - run: npm install - - run: npm run lint -- ${{ steps.files.outputs.added_modified }} - - run: npm run validate -- ${{ steps.files.outputs.added_modified }} + - uses: actions/setup-node@v2 + if: ${{ !env.ACT && steps.files.outputs.any_changed == 'true' }} + with: + node-version: '14' + cache: 'npm' + - uses: tj-actions/changed-files@v12.2 + id: files + with: + files: 'sites' + - name: validate + if: steps.files.outputs.any_changed == 'true' + run: | + npm install + npm run channels:lint -- ${{ steps.files.outputs.all_changed_files }} + npm run channels:validate -- ${{ steps.files.outputs.all_changed_files }} diff --git a/.github/workflows/_load.yml b/.github/workflows/_load.yml new file mode 100644 index 00000000..17e58f35 --- /dev/null +++ b/.github/workflows/_load.yml @@ -0,0 +1,48 @@ +name: _load +on: + workflow_call: + inputs: + site: + required: true + type: string + secrets: + APP_ID: + required: true + APP_PRIVATE_KEY: + required: true +jobs: + load: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Download data from API + run: | + mkdir -p scripts/data + curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json + - uses: FedericoCarboni/setup-ffmpeg@v1 + - uses: actions/setup-node@v2 + if: ${{ !env.ACT }} + with: + node-version: '14' + cache: 'npm' + - run: npm install + - run: CHANNELS_PATH=sites/${{inputs.site}}/*.channels.xml npm run queue:create -- --max-clusters=1 --days=2 + - run: NODE_OPTIONS=--insecure-http-parser npm run cluster:load -- --timeout=30000 --cluster-id=1 + - run: npm run programs:save + - run: npm run guides:update + - uses: tibdex/github-app-token@v1 + if: ${{ !env.ACT }} + id: create-app-token + with: + app_id: ${{ secrets.APP_ID }} + private_key: ${{ secrets.APP_PRIVATE_KEY }} + - uses: JamesIves/github-pages-deploy-action@4.1.1 + if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} + with: + branch: gh-pages + folder: .gh-pages + token: ${{ steps.create-app-token.outputs.token }} + git-config-name: iptv-bot[bot] + git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com + commit-message: '[Bot] Deploy to GitHub Pages' + clean: false diff --git a/.github/workflows/_trigger.yml b/.github/workflows/_trigger.yml new file mode 100644 index 00000000..e866e272 --- /dev/null +++ b/.github/workflows/_trigger.yml @@ -0,0 +1,8 @@ +name: _trigger +on: + workflow_dispatch: +jobs: + start: + runs-on: ubuntu-latest + steps: + - run: echo 'Starting all workflows...' diff --git a/.github/workflows/_update-api.yml b/.github/workflows/_update-api.yml index 38433931..927ed780 100644 --- a/.github/workflows/_update-api.yml +++ b/.github/workflows/_update-api.yml @@ -4,12 +4,17 @@ on: schedule: - cron: '0 12 * * *' jobs: - check: + update: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + if: ${{ !env.ACT }} + with: + node-version: '14' + cache: 'npm' - run: npm install - - run: node scripts/commands/update-api.js + - run: npm run api:update - uses: tibdex/github-app-token@v1 if: ${{ !env.ACT }} id: create-app-token @@ -21,7 +26,7 @@ jobs: with: repository-name: iptv-org/api branch: gh-pages - folder: .gh-pages/api + folder: .api token: ${{ steps.create-app-token.outputs.token }} git-config-name: iptv-bot[bot] git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com diff --git a/.github/workflows/_update-readme.yml b/.github/workflows/_update-readme.yml new file mode 100644 index 00000000..1a1e1132 --- /dev/null +++ b/.github/workflows/_update-readme.yml @@ -0,0 +1,57 @@ +name: _update-readme +on: + workflow_dispatch: + schedule: + - cron: '0 12 * * *' +jobs: + update: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: echo "::set-output name=branch_name::$(date +'bot/auto-update-%s')" + id: create-branch-name + - run: git config user.name 'iptv-bot[bot]' + - run: git config user.email '84861620+iptv-bot[bot]@users.noreply.github.com' + - run: git checkout -b ${{ steps.create-branch-name.outputs.branch_name }} + - name: Download data from API + run: | + mkdir -p scripts/data + curl -L -o scripts/data/countries.json https://iptv-org.github.io/api/countries.json + - uses: actions/setup-node@v2 + if: ${{ !env.ACT }} + with: + node-version: '14' + cache: 'npm' + - run: npm install + - run: npm run readme:update + - name: Commit Changes + if: ${{ !env.ACT }} + run: | + git add README.md + git commit -m "[Bot] Update README.md" + git status + git push -u origin ${{ steps.create-branch-name.outputs.branch_name }} + - uses: tibdex/github-app-token@v1 + if: ${{ !env.ACT }} + id: create-app-token + with: + app_id: ${{ secrets.APP_ID }} + private_key: ${{ secrets.APP_PRIVATE_KEY }} + - uses: repo-sync/pull-request@v2 + if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} + id: pull-request + with: + github_token: ${{ steps.create-app-token.outputs.token }} + source_branch: ${{ steps.create-branch-name.outputs.branch_name }} + destination_branch: 'master' + pr_title: '[Bot] Daily update' + pr_body: | + This pull request is created via [update-readme][1] workflow. + + [1]: https://github.com/iptv-org/epg/actions/runs/${{ github.run_id }} + - uses: juliangruber/merge-pull-request-action@v1 + if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} + with: + github-token: ${{ secrets.PAT }} + number: ${{ steps.pull-request.outputs.pr_number }} + method: squash diff --git a/.github/workflows/allente.se.yml b/.github/workflows/allente.se.yml index 9b14dc89..6cce784f 100644 --- a/.github/workflows/allente.se.yml +++ b/.github/workflows/allente.se.yml @@ -1,36 +1,17 @@ name: allente.se on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/andorradifusio.ad.yml b/.github/workflows/andorradifusio.ad.yml index 4a2c7b2f..3c9e7273 100644 --- a/.github/workflows/andorradifusio.ad.yml +++ b/.github/workflows/andorradifusio.ad.yml @@ -1,36 +1,17 @@ name: andorradifusio.ad on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/arianaafgtv.com.yml b/.github/workflows/arianaafgtv.com.yml index b92af68c..ecc02af7 100644 --- a/.github/workflows/arianaafgtv.com.yml +++ b/.github/workflows/arianaafgtv.com.yml @@ -1,36 +1,17 @@ name: arianaafgtv.com on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/arianatelevision.com.yml b/.github/workflows/arianatelevision.com.yml index b42327ac..8cbe2661 100644 --- a/.github/workflows/arianatelevision.com.yml +++ b/.github/workflows/arianatelevision.com.yml @@ -1,36 +1,17 @@ name: arianatelevision.com on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/astro.com.my.yml b/.github/workflows/astro.com.my.yml index 15dc23cf..0ae0724f 100644 --- a/.github/workflows/astro.com.my.yml +++ b/.github/workflows/astro.com.my.yml @@ -1,36 +1,17 @@ name: astro.com.my on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/beinsports.com.yml b/.github/workflows/beinsports.com.yml index 7b736c96..33f05e27 100644 --- a/.github/workflows/beinsports.com.yml +++ b/.github/workflows/beinsports.com.yml @@ -1,36 +1,17 @@ name: beinsports.com on: - workflow_dispatch: schedule: - cron: '5 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/canalplus-afrique.com.yml b/.github/workflows/canalplus-afrique.com.yml index c05ab90c..959f8817 100644 --- a/.github/workflows/canalplus-afrique.com.yml +++ b/.github/workflows/canalplus-afrique.com.yml @@ -1,36 +1,17 @@ name: canalplus-afrique.com on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/canalplus-caraibes.com.yml b/.github/workflows/canalplus-caraibes.com.yml index fec86a58..e29f7ce8 100644 --- a/.github/workflows/canalplus-caraibes.com.yml +++ b/.github/workflows/canalplus-caraibes.com.yml @@ -1,36 +1,17 @@ name: canalplus-caraibes.com on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/canalplus-haiti.com.yml b/.github/workflows/canalplus-haiti.com.yml index 329b69d5..fe871859 100644 --- a/.github/workflows/canalplus-haiti.com.yml +++ b/.github/workflows/canalplus-haiti.com.yml @@ -1,36 +1,17 @@ name: canalplus-haiti.com on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/canalplus-reunion.com.yml b/.github/workflows/canalplus-reunion.com.yml index d4ef3da4..38f6c038 100644 --- a/.github/workflows/canalplus-reunion.com.yml +++ b/.github/workflows/canalplus-reunion.com.yml @@ -1,36 +1,17 @@ name: canalplus-reunion.com on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/chaines-tv.orange.fr.yml b/.github/workflows/chaines-tv.orange.fr.yml index 644bf577..450403d4 100644 --- a/.github/workflows/chaines-tv.orange.fr.yml +++ b/.github/workflows/chaines-tv.orange.fr.yml @@ -1,36 +1,17 @@ name: chaines-tv.orange.fr on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/comteco.com.bo.yml b/.github/workflows/comteco.com.bo.yml index f0bd98a8..df258366 100644 --- a/.github/workflows/comteco.com.bo.yml +++ b/.github/workflows/comteco.com.bo.yml @@ -1,36 +1,17 @@ name: comteco.com.bo on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/cosmote.gr.yml b/.github/workflows/cosmote.gr.yml index f410bf3d..9e2dc33d 100644 --- a/.github/workflows/cosmote.gr.yml +++ b/.github/workflows/cosmote.gr.yml @@ -1,36 +1,17 @@ name: cosmote.gr on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/delta.nl.yml b/.github/workflows/delta.nl.yml index 4c56358d..dd14616e 100644 --- a/.github/workflows/delta.nl.yml +++ b/.github/workflows/delta.nl.yml @@ -1,36 +1,17 @@ name: delta.nl on: - workflow_dispatch: schedule: - cron: '10 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/digiturk.com.tr.yml b/.github/workflows/digiturk.com.tr.yml index 9b574ef7..c3fd0075 100644 --- a/.github/workflows/digiturk.com.tr.yml +++ b/.github/workflows/digiturk.com.tr.yml @@ -1,36 +1,17 @@ name: digiturk.com.tr on: - workflow_dispatch: schedule: - - cron: '0 0 * * *' + - cron: '10 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/directv.com.yml b/.github/workflows/directv.com.yml index 9089dd42..56024334 100644 --- a/.github/workflows/directv.com.yml +++ b/.github/workflows/directv.com.yml @@ -1,36 +1,17 @@ name: directv.com on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/dishtv.in.yml b/.github/workflows/dishtv.in.yml index 37cd6537..3ea9921b 100644 --- a/.github/workflows/dishtv.in.yml +++ b/.github/workflows/dishtv.in.yml @@ -1,36 +1,17 @@ name: dishtv.in on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/dsmart.com.tr.yml b/.github/workflows/dsmart.com.tr.yml index d6512491..055f3339 100644 --- a/.github/workflows/dsmart.com.tr.yml +++ b/.github/workflows/dsmart.com.tr.yml @@ -1,36 +1,17 @@ name: dsmart.com.tr on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/dstv.com.yml b/.github/workflows/dstv.com.yml index 27b2ba6b..7c94c891 100644 --- a/.github/workflows/dstv.com.yml +++ b/.github/workflows/dstv.com.yml @@ -1,36 +1,17 @@ name: dstv.com on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/elcinema.com.yml b/.github/workflows/elcinema.com.yml index 2f9a3ef6..85d8839d 100644 --- a/.github/workflows/elcinema.com.yml +++ b/.github/workflows/elcinema.com.yml @@ -1,36 +1,17 @@ name: elcinema.com on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/frikanalen.no.yml b/.github/workflows/frikanalen.no.yml index b9c3fdba..a3a1c0cd 100644 --- a/.github/workflows/frikanalen.no.yml +++ b/.github/workflows/frikanalen.no.yml @@ -1,36 +1,17 @@ name: frikanalen.no on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/gatotv.com.yml b/.github/workflows/gatotv.com.yml index a7c53db1..5c176e90 100644 --- a/.github/workflows/gatotv.com.yml +++ b/.github/workflows/gatotv.com.yml @@ -1,36 +1,17 @@ name: gatotv.com on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/guidatv.sky.it.yml b/.github/workflows/guidatv.sky.it.yml index 7eb69d59..d49848ea 100644 --- a/.github/workflows/guidatv.sky.it.yml +++ b/.github/workflows/guidatv.sky.it.yml @@ -1,36 +1,17 @@ name: guidatv.sky.it on: - workflow_dispatch: schedule: - - cron: '0 0 * * *' + - cron: '5 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/hd-plus.de.yml b/.github/workflows/hd-plus.de.yml index 486616b6..cbd18d3a 100644 --- a/.github/workflows/hd-plus.de.yml +++ b/.github/workflows/hd-plus.de.yml @@ -1,36 +1,17 @@ name: hd-plus.de on: - workflow_dispatch: schedule: - - cron: '0 0 * * *' + - cron: '5 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/ipko.com.yml b/.github/workflows/ipko.com.yml index 53de7a6f..35b1bf32 100644 --- a/.github/workflows/ipko.com.yml +++ b/.github/workflows/ipko.com.yml @@ -1,36 +1,17 @@ name: ipko.com on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/knr.gl.yml b/.github/workflows/knr.gl.yml index f30896e3..3faa5eac 100644 --- a/.github/workflows/knr.gl.yml +++ b/.github/workflows/knr.gl.yml @@ -1,36 +1,17 @@ name: knr.gl on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/kvf.fo.yml b/.github/workflows/kvf.fo.yml index 27f77d63..a33e8245 100644 --- a/.github/workflows/kvf.fo.yml +++ b/.github/workflows/kvf.fo.yml @@ -1,36 +1,17 @@ name: kvf.fo on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/m.tv.sms.cz.yml b/.github/workflows/m.tv.sms.cz.yml index 554e7c0e..46b8c7f1 100644 --- a/.github/workflows/m.tv.sms.cz.yml +++ b/.github/workflows/m.tv.sms.cz.yml @@ -1,36 +1,17 @@ name: m.tv.sms.cz on: - workflow_dispatch: schedule: - - cron: '0 0 * * *' + - cron: '5 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/magticom.ge.yml b/.github/workflows/magticom.ge.yml index ad923448..fbb4832b 100644 --- a/.github/workflows/magticom.ge.yml +++ b/.github/workflows/magticom.ge.yml @@ -1,36 +1,17 @@ name: magticom.ge on: - workflow_dispatch: schedule: - cron: '5 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/maxtv.hrvatskitelekom.hr.yml b/.github/workflows/maxtv.hrvatskitelekom.hr.yml index 318b8a42..601d261e 100644 --- a/.github/workflows/maxtv.hrvatskitelekom.hr.yml +++ b/.github/workflows/maxtv.hrvatskitelekom.hr.yml @@ -1,36 +1,17 @@ name: maxtv.hrvatskitelekom.hr on: - workflow_dispatch: schedule: - cron: '5 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/maxtvgo.mk.yml b/.github/workflows/maxtvgo.mk.yml index 8aa45c99..a8fd5a3e 100644 --- a/.github/workflows/maxtvgo.mk.yml +++ b/.github/workflows/maxtvgo.mk.yml @@ -1,36 +1,17 @@ name: maxtvgo.mk on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/mbc.net.yml b/.github/workflows/mbc.net.yml index a6dbd993..bc33eae3 100644 --- a/.github/workflows/mbc.net.yml +++ b/.github/workflows/mbc.net.yml @@ -1,36 +1,17 @@ name: mbc.net on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/mediaset.it.yml b/.github/workflows/mediaset.it.yml index e3998d61..e96f1efb 100644 --- a/.github/workflows/mediaset.it.yml +++ b/.github/workflows/mediaset.it.yml @@ -1,36 +1,17 @@ name: mediaset.it on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/meo.pt.yml b/.github/workflows/meo.pt.yml index 3ad344ca..e3384f6f 100644 --- a/.github/workflows/meo.pt.yml +++ b/.github/workflows/meo.pt.yml @@ -1,36 +1,17 @@ name: meo.pt on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/mi.tv.yml b/.github/workflows/mi.tv.yml index 62a18f3b..02c27257 100644 --- a/.github/workflows/mi.tv.yml +++ b/.github/workflows/mi.tv.yml @@ -1,36 +1,17 @@ name: mi.tv on: - workflow_dispatch: schedule: - cron: '5 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/mncvision.id.yml b/.github/workflows/mncvision.id.yml index c853896e..75007453 100644 --- a/.github/workflows/mncvision.id.yml +++ b/.github/workflows/mncvision.id.yml @@ -1,36 +1,17 @@ name: mncvision.id on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/mtel.ba.yml b/.github/workflows/mtel.ba.yml index 6ece9460..f1f62068 100644 --- a/.github/workflows/mtel.ba.yml +++ b/.github/workflows/mtel.ba.yml @@ -1,36 +1,17 @@ name: mtel.ba on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/mts.rs.yml b/.github/workflows/mts.rs.yml index 6505b594..93ae2f33 100644 --- a/.github/workflows/mts.rs.yml +++ b/.github/workflows/mts.rs.yml @@ -1,36 +1,17 @@ name: mts.rs on: - workflow_dispatch: schedule: - - cron: '5 0 * * *' + - cron: '10 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/novacyprus.com.yml b/.github/workflows/novacyprus.com.yml index 37eee38d..53d3b27c 100644 --- a/.github/workflows/novacyprus.com.yml +++ b/.github/workflows/novacyprus.com.yml @@ -1,36 +1,17 @@ name: novacyprus.com on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/nowplayer.now.com.yml b/.github/workflows/nowplayer.now.com.yml index 0ffdf567..fc1c1b45 100644 --- a/.github/workflows/nowplayer.now.com.yml +++ b/.github/workflows/nowplayer.now.com.yml @@ -1,36 +1,17 @@ name: nowplayer.now.com on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/ontvtonight.com.yml b/.github/workflows/ontvtonight.com.yml index 42ed8d77..c45fc3d0 100644 --- a/.github/workflows/ontvtonight.com.yml +++ b/.github/workflows/ontvtonight.com.yml @@ -1,36 +1,17 @@ name: ontvtonight.com on: - workflow_dispatch: schedule: - - cron: '0 0 * * *' + - cron: '5 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/osn.com.yml b/.github/workflows/osn.com.yml index 0f429afb..228945d9 100644 --- a/.github/workflows/osn.com.yml +++ b/.github/workflows/osn.com.yml @@ -1,36 +1,17 @@ name: osn.com on: - workflow_dispatch: schedule: - cron: '5 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/pbsguam.org.yml b/.github/workflows/pbsguam.org.yml index 3f108a33..d5c85dd0 100644 --- a/.github/workflows/pbsguam.org.yml +++ b/.github/workflows/pbsguam.org.yml @@ -1,36 +1,17 @@ name: pbsguam.org on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/programacion-tv.elpais.com.yml b/.github/workflows/programacion-tv.elpais.com.yml index e6de61d4..52ebf0d2 100644 --- a/.github/workflows/programacion-tv.elpais.com.yml +++ b/.github/workflows/programacion-tv.elpais.com.yml @@ -1,36 +1,17 @@ name: programacion-tv.elpais.com on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/programetv.ro.yml b/.github/workflows/programetv.ro.yml index 923ad715..da0829b2 100644 --- a/.github/workflows/programetv.ro.yml +++ b/.github/workflows/programetv.ro.yml @@ -1,36 +1,17 @@ name: programetv.ro on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/programme-tv.net.yml b/.github/workflows/programme-tv.net.yml index 7e2c8c17..c7525968 100644 --- a/.github/workflows/programme-tv.net.yml +++ b/.github/workflows/programme-tv.net.yml @@ -1,36 +1,17 @@ name: programme-tv.net on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/programme-tv.vini.pf.yml b/.github/workflows/programme-tv.vini.pf.yml index 7af6630b..2ebdb93f 100644 --- a/.github/workflows/programme-tv.vini.pf.yml +++ b/.github/workflows/programme-tv.vini.pf.yml @@ -1,36 +1,17 @@ name: programme-tv.vini.pf on: - workflow_dispatch: schedule: - cron: '5 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/programtv.onet.pl.yml b/.github/workflows/programtv.onet.pl.yml index 27607c7b..0f2703fc 100644 --- a/.github/workflows/programtv.onet.pl.yml +++ b/.github/workflows/programtv.onet.pl.yml @@ -1,36 +1,17 @@ name: programtv.onet.pl on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/rev.bs.yml b/.github/workflows/rev.bs.yml index fa5462a5..87d8a91c 100644 --- a/.github/workflows/rev.bs.yml +++ b/.github/workflows/rev.bs.yml @@ -1,36 +1,17 @@ name: rev.bs on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/rotana.net.yml b/.github/workflows/rotana.net.yml index ff14faaa..3c2834a0 100644 --- a/.github/workflows/rotana.net.yml +++ b/.github/workflows/rotana.net.yml @@ -1,36 +1,17 @@ name: rotana.net on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/rtb.gov.bn.yml b/.github/workflows/rtb.gov.bn.yml index 5f4a7b62..3467fb71 100644 --- a/.github/workflows/rtb.gov.bn.yml +++ b/.github/workflows/rtb.gov.bn.yml @@ -1,36 +1,17 @@ name: rtb.gov.bn on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/ruv.is.yml b/.github/workflows/ruv.is.yml index d703c3d3..8fde6f06 100644 --- a/.github/workflows/ruv.is.yml +++ b/.github/workflows/ruv.is.yml @@ -1,36 +1,17 @@ name: ruv.is on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/siba.com.co.yml b/.github/workflows/siba.com.co.yml index a244874b..ca1b77a1 100644 --- a/.github/workflows/siba.com.co.yml +++ b/.github/workflows/siba.com.co.yml @@ -1,36 +1,17 @@ name: siba.com.co on: - workflow_dispatch: schedule: - - cron: '5 0 * * *' + - cron: '10 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/sky.com.yml b/.github/workflows/sky.com.yml index 4d7289fa..eb63199f 100644 --- a/.github/workflows/sky.com.yml +++ b/.github/workflows/sky.com.yml @@ -1,36 +1,17 @@ name: sky.com on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/sky.de.yml b/.github/workflows/sky.de.yml new file mode 100644 index 00000000..0e2c6e97 --- /dev/null +++ b/.github/workflows/sky.de.yml @@ -0,0 +1,17 @@ +name: sky.de +on: + schedule: + - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed +jobs: + load: + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/teliatv.ee.yml b/.github/workflows/teliatv.ee.yml index 7904ea46..eb61d449 100644 --- a/.github/workflows/teliatv.ee.yml +++ b/.github/workflows/teliatv.ee.yml @@ -1,36 +1,17 @@ name: teliatv.ee on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/telkussa.fi.yml b/.github/workflows/telkussa.fi.yml index d67c1183..6efb54bd 100644 --- a/.github/workflows/telkussa.fi.yml +++ b/.github/workflows/telkussa.fi.yml @@ -1,36 +1,17 @@ name: telkussa.fi on: - workflow_dispatch: schedule: - - cron: '0 0 * * *' + - cron: '5 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/turksatkablo.com.tr.yml b/.github/workflows/turksatkablo.com.tr.yml index 64203051..0728a43d 100644 --- a/.github/workflows/turksatkablo.com.tr.yml +++ b/.github/workflows/turksatkablo.com.tr.yml @@ -1,36 +1,17 @@ name: turksatkablo.com.tr on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/tv.blue.ch.yml b/.github/workflows/tv.blue.ch.yml index 76bb4f19..171a30cc 100644 --- a/.github/workflows/tv.blue.ch.yml +++ b/.github/workflows/tv.blue.ch.yml @@ -1,36 +1,17 @@ name: tv.blue.ch on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/tv.cctv.com.yml b/.github/workflows/tv.cctv.com.yml index 51bef710..889684b9 100644 --- a/.github/workflows/tv.cctv.com.yml +++ b/.github/workflows/tv.cctv.com.yml @@ -1,36 +1,17 @@ name: tv.cctv.com on: - workflow_dispatch: schedule: - cron: '5 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/tv.dir.bg.yml b/.github/workflows/tv.dir.bg.yml index 49b3bfd9..3626c0c3 100644 --- a/.github/workflows/tv.dir.bg.yml +++ b/.github/workflows/tv.dir.bg.yml @@ -1,36 +1,17 @@ name: tv.dir.bg on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/tv.lv.yml b/.github/workflows/tv.lv.yml index af73a648..94317775 100644 --- a/.github/workflows/tv.lv.yml +++ b/.github/workflows/tv.lv.yml @@ -1,36 +1,17 @@ name: tv.lv on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/tv.mail.ru.yml b/.github/workflows/tv.mail.ru.yml index e6666813..35c29526 100644 --- a/.github/workflows/tv.mail.ru.yml +++ b/.github/workflows/tv.mail.ru.yml @@ -1,36 +1,17 @@ name: tv.mail.ru on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/tv.trueid.net.yml b/.github/workflows/tv.trueid.net.yml index 832cb182..f328a1ce 100644 --- a/.github/workflows/tv.trueid.net.yml +++ b/.github/workflows/tv.trueid.net.yml @@ -1,36 +1,17 @@ name: tv.trueid.net on: - workflow_dispatch: schedule: - - cron: '0 0 * * *' + - cron: '5 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/tv.yandex.ru.yml b/.github/workflows/tv.yandex.ru.yml index 0e4d1448..bbd031d3 100644 --- a/.github/workflows/tv.yandex.ru.yml +++ b/.github/workflows/tv.yandex.ru.yml @@ -1,36 +1,17 @@ name: tv.yandex.ru on: - workflow_dispatch: schedule: - cron: '5 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/tv2go.t-2.net.yml b/.github/workflows/tv2go.t-2.net.yml index 59a02dd2..d28c5449 100644 --- a/.github/workflows/tv2go.t-2.net.yml +++ b/.github/workflows/tv2go.t-2.net.yml @@ -1,36 +1,17 @@ name: tv2go.t-2.net on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/tva.tv.yml b/.github/workflows/tva.tv.yml index 59847130..d72cf934 100644 --- a/.github/workflows/tva.tv.yml +++ b/.github/workflows/tva.tv.yml @@ -1,36 +1,17 @@ name: tva.tv on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/tvarenasport.com.yml b/.github/workflows/tvarenasport.com.yml index 16826cc9..8d0d65fe 100644 --- a/.github/workflows/tvarenasport.com.yml +++ b/.github/workflows/tvarenasport.com.yml @@ -1,36 +1,17 @@ name: tvarenasport.com on: - workflow_dispatch: schedule: - - cron: '0 0 * * *' + - cron: '5 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/tvarenasport.hr.yml b/.github/workflows/tvarenasport.hr.yml index 044c6aa9..d7c21394 100644 --- a/.github/workflows/tvarenasport.hr.yml +++ b/.github/workflows/tvarenasport.hr.yml @@ -1,36 +1,17 @@ name: tvarenasport.hr on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/tvcubana.icrt.cu.yml b/.github/workflows/tvcubana.icrt.cu.yml index 877a7b52..7a666b7f 100644 --- a/.github/workflows/tvcubana.icrt.cu.yml +++ b/.github/workflows/tvcubana.icrt.cu.yml @@ -1,36 +1,17 @@ name: tvcubana.icrt.cu on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/tvgid.ua.yml b/.github/workflows/tvgid.ua.yml index cbc44b7a..ca5add6e 100644 --- a/.github/workflows/tvgid.ua.yml +++ b/.github/workflows/tvgid.ua.yml @@ -1,36 +1,17 @@ name: tvgid.ua on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/tvguide.com.yml b/.github/workflows/tvguide.com.yml index af05b20c..2b8b8ca1 100644 --- a/.github/workflows/tvguide.com.yml +++ b/.github/workflows/tvguide.com.yml @@ -1,36 +1,17 @@ name: tvguide.com on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/tvguide.myjcom.jp.yml b/.github/workflows/tvguide.myjcom.jp.yml index 642d756f..22c0a402 100644 --- a/.github/workflows/tvguide.myjcom.jp.yml +++ b/.github/workflows/tvguide.myjcom.jp.yml @@ -1,36 +1,17 @@ name: tvguide.myjcom.jp on: - workflow_dispatch: schedule: - - cron: '0 0 * * *' + - cron: '5 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/tvheute.at.yml b/.github/workflows/tvheute.at.yml index de72d826..ac4afdb2 100644 --- a/.github/workflows/tvheute.at.yml +++ b/.github/workflows/tvheute.at.yml @@ -1,36 +1,17 @@ name: tvheute.at on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/tvim.tv.yml b/.github/workflows/tvim.tv.yml index 95252295..db5d2c87 100644 --- a/.github/workflows/tvim.tv.yml +++ b/.github/workflows/tvim.tv.yml @@ -1,36 +1,17 @@ name: tvim.tv on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/tvmusor.hu.yml b/.github/workflows/tvmusor.hu.yml index 12118897..39776be4 100644 --- a/.github/workflows/tvmusor.hu.yml +++ b/.github/workflows/tvmusor.hu.yml @@ -1,36 +1,17 @@ name: tvmusor.hu on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/tvplus.com.tr.yml b/.github/workflows/tvplus.com.tr.yml index c1ee765e..8867361b 100644 --- a/.github/workflows/tvplus.com.tr.yml +++ b/.github/workflows/tvplus.com.tr.yml @@ -1,36 +1,17 @@ name: tvplus.com.tr on: - workflow_dispatch: schedule: - - cron: '0 0 * * *' + - cron: '5 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/tvprofil.com.yml b/.github/workflows/tvprofil.com.yml index abab5e00..11db75f8 100644 --- a/.github/workflows/tvprofil.com.yml +++ b/.github/workflows/tvprofil.com.yml @@ -1,36 +1,17 @@ name: tvprofil.com on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/tvtv.us.yml b/.github/workflows/tvtv.us.yml index 620b36d4..5afbce88 100644 --- a/.github/workflows/tvtv.us.yml +++ b/.github/workflows/tvtv.us.yml @@ -1,36 +1,17 @@ name: tvtv.us on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/vidio.com.yml b/.github/workflows/vidio.com.yml index 76fb436b..05497572 100644 --- a/.github/workflows/vidio.com.yml +++ b/.github/workflows/vidio.com.yml @@ -1,36 +1,17 @@ name: vidio.com on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/vivacom.bg.yml b/.github/workflows/vivacom.bg.yml index 14b6b1f8..6a0a45b1 100644 --- a/.github/workflows/vivacom.bg.yml +++ b/.github/workflows/vivacom.bg.yml @@ -1,36 +1,17 @@ name: vivacom.bg on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/vtm.be.yml b/.github/workflows/vtm.be.yml index 6ddc99e8..833efae9 100644 --- a/.github/workflows/vtm.be.yml +++ b/.github/workflows/vtm.be.yml @@ -1,36 +1,17 @@ name: vtm.be on: - workflow_dispatch: schedule: - cron: '5 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/walesi.com.fj.yml b/.github/workflows/walesi.com.fj.yml index b362bdf0..9f33eb61 100644 --- a/.github/workflows/walesi.com.fj.yml +++ b/.github/workflows/walesi.com.fj.yml @@ -1,36 +1,17 @@ name: walesi.com.fj on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/zap.co.ao.yml b/.github/workflows/zap.co.ao.yml index 51c3ad63..784fa93b 100644 --- a/.github/workflows/zap.co.ao.yml +++ b/.github/workflows/zap.co.ao.yml @@ -1,36 +1,17 @@ name: zap.co.ao on: - workflow_dispatch: schedule: - cron: '5 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/znbc.co.zm.yml b/.github/workflows/znbc.co.zm.yml index 0eb8281b..dfb2d98d 100644 --- a/.github/workflows/znbc.co.zm.yml +++ b/.github/workflows/znbc.co.zm.yml @@ -1,36 +1,17 @@ name: znbc.co.zm on: - workflow_dispatch: schedule: - cron: '0 0 * * *' + workflow_dispatch: + workflow_run: + workflows: [_trigger] + types: + - completed jobs: load: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Download channels from API - run: | - mkdir -p scripts/data - curl -L -o scripts/data/channels.json https://iptv-org.github.io/api/channels.json - - uses: FedericoCarboni/setup-ffmpeg@v1 - - run: npm install - - run: CHANNELS_PATH=sites/${{github.workflow}}/*.channels.xml node scripts/commands/create-queue.js --max-clusters=1 --days=2 - - run: NODE_OPTIONS=--insecure-http-parser node scripts/commands/load-cluster.js --timeout=30000 --cluster-id=1 - - run: node scripts/commands/save-results.js - - run: node scripts/commands/update-guides.js - - uses: tibdex/github-app-token@v1 - if: ${{ !env.ACT }} - id: create-app-token - with: - app_id: ${{ secrets.APP_ID }} - private_key: ${{ secrets.APP_PRIVATE_KEY }} - - uses: JamesIves/github-pages-deploy-action@4.1.1 - if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} - with: - branch: gh-pages - folder: .gh-pages - token: ${{ steps.create-app-token.outputs.token }} - git-config-name: iptv-bot[bot] - git-config-email: 84861620+iptv-bot[bot]@users.noreply.github.com - commit-message: '[Bot] Deploy to GitHub Pages' - clean: false + uses: ./.github/workflows/_load.yml + with: + site: ${{github.workflow}} + secrets: + APP_ID: ${{ secrets.APP_ID }} + APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.readme/template.md b/.readme/template.md index 007571fa..9dc85d98 100644 --- a/.readme/template.md +++ b/.readme/template.md @@ -9,14 +9,14 @@ To load a program guide, all you need to do is copy the link to one or more of t #include "./.readme/_countries.md" -## EPG Codes - -📋 [iptv-org.github.io](https://iptv-org.github.io/) - ## API The API documentation can be found in the [iptv-org/api](https://github.com/iptv-org/api) repository. +## Resources + +Links to other useful IPTV-related resources can be found in the [iptv-org/awesome-iptv](https://github.com/iptv-org/awesome-iptv) repository. + ## Contribution If you find a bug or want to contribute to the code or documentation, you can help by submitting an [issue](https://github.com/iptv-org/epg/issues) or a [pull request](https://github.com/iptv-org/epg/pulls). diff --git a/README.md b/README.md index 52223afb..407ef3b3 100644 --- a/README.md +++ b/README.md @@ -38,15 +38,15 @@ To load a program guide, all you need to do is copy the link to one or more of t
https://iptv-org.github.io/epg/guides/ba/mtel.ba.epg.xml
https://iptv-org.github.io/epg/guides/ba/tvarenasport.com.epg.xml
https://iptv-org.github.io/epg/guides/bw/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/br/mi.tv.epg.xml
https://iptv-org.github.io/epg/guides/bg/tv.dir.bg.epg.xml
https://iptv-org.github.io/epg/guides/br/mi.tv.epg.xml
https://iptv-org.github.io/epg/guides/bg/tv.dir.bg.epg.xml
https://iptv-org.github.io/epg/guides/bf/canalplus-afrique.com.epg.xml
https://iptv-org.github.io/epg/guides/bf/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/bi/canalplus-afrique.com.epg.xml
https://iptv-org.github.io/epg/guides/bi/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/cm/canalplus-afrique.com.epg.xml
https://iptv-org.github.io/epg/guides/cm/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/ca/tvtv.us.epg.xml
https://iptv-org.github.io/epg/guides/ca/tvtv.us.epg.xml
https://iptv-org.github.io/epg/guides/cv/canalplus-afrique.com.epg.xml
https://iptv-org.github.io/epg/guides/cv/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/cf/canalplus-afrique.com.epg.xml
https://iptv-org.github.io/epg/guides/td-en/osn.com.epg.xml
https://iptv-org.github.io/epg/guides/cl/mi.tv.epg.xml
https://iptv-org.github.io/epg/guides/cl/gatotv.com.epg.xml
https://iptv-org.github.io/epg/guides/cn/tv.cctv.com.epg.xml
https://iptv-org.github.io/epg/guides/cn/tv.cctv.com.epg.xml
https://iptv-org.github.io/epg/guides/co/siba.com.co.epg.xml
https://iptv-org.github.io/epg/guides/co/gatotv.com.epg.xml
https://iptv-org.github.io/epg/guides/co/mi.tv.epg.xml
https://iptv-org.github.io/epg/guides/km/canalplus-reunion.com.epg.xml
https://iptv-org.github.io/epg/guides/cr/gatotv.com.epg.xml
https://iptv-org.github.io/epg/guides/hr/maxtv.hrvatskitelekom.hr.epg.xml
https://iptv-org.github.io/epg/guides/hr/maxtv.hrvatskitelekom.hr.epg.xml
https://iptv-org.github.io/epg/guides/hr/tvarenasport.hr.epg.xml
https://iptv-org.github.io/epg/guides/cu/tvcubana.icrt.cu.epg.xml
https://iptv-org.github.io/epg/guides/cy/novacyprus.com.epg.xml
https://iptv-org.github.io/epg/guides/cz/m.tv.sms.cz.epg.xml
https://iptv-org.github.io/epg/guides/cz/m.tv.sms.cz.epg.xml
https://iptv-org.github.io/epg/guides/cd/canalplus-afrique.com.epg.xml
https://iptv-org.github.io/epg/guides/cd/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/dk/allente.se.epg.xml
https://iptv-org.github.io/epg/guides/dj/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/do/gatotv.com.epg.xml
https://iptv-org.github.io/epg/guides/ec/gatotv.com.epg.xml
https://iptv-org.github.io/epg/guides/eg-ar/elcinema.com.epg.xml
https://iptv-org.github.io/epg/guides/eg-en/elcinema.com.epg.xml
https://iptv-org.github.io/epg/guides/eg-ar/elcinema.com.epg.xml
https://iptv-org.github.io/epg/guides/eg-en/elcinema.com.epg.xml
https://iptv-org.github.io/epg/guides/eg-ar/osn.com.epg.xml
https://iptv-org.github.io/epg/guides/eg-en/osn.com.epg.xml
https://iptv-org.github.io/epg/guides/sv/gatotv.com.epg.xml
https://iptv-org.github.io/epg/guides/ga/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/gm/canalplus-afrique.com.epg.xml
https://iptv-org.github.io/epg/guides/gm/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/ge/magticom.ge.epg.xml
https://iptv-org.github.io/epg/guides/de/hd-plus.de.epg.xml
https://iptv-org.github.io/epg/guides/ge/magticom.ge.epg.xml
https://iptv-org.github.io/epg/guides/de/hd-plus.de.epg.xml
https://iptv-org.github.io/epg/guides/de/sky.de.epg.xml
https://iptv-org.github.io/epg/guides/gh/canalplus-afrique.com.epg.xml
https://iptv-org.github.io/epg/guides/gh/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/gr/cosmote.gr.epg.xml
https://iptv-org.github.io/epg/guides/hu/tvmusor.hu.epg.xml
https://iptv-org.github.io/epg/guides/is/ruv.is.epg.xml
https://iptv-org.github.io/epg/guides/in/dishtv.in.epg.xml
https://iptv-org.github.io/epg/guides/id/mncvision.id.epg.xml
https://iptv-org.github.io/epg/guides/id/vidio.com.epg.xml
https://iptv-org.github.io/epg/guides/id/mncvision.id.epg.xml
https://iptv-org.github.io/epg/guides/id/vidio.com.epg.xml
https://iptv-org.github.io/epg/guides/ir/tva.tv.epg.xml
https://iptv-org.github.io/epg/guides/iq-ar/osn.com.epg.xml
https://iptv-org.github.io/epg/guides/iq-en/osn.com.epg.xml
https://iptv-org.github.io/epg/guides/ie/ontvtonight.com.epg.xml
https://iptv-org.github.io/epg/guides/it/guidatv.sky.it.epg.xml
https://iptv-org.github.io/epg/guides/it/guidatv.sky.it.epg.xml
https://iptv-org.github.io/epg/guides/it/mediaset.it.epg.xml
https://iptv-org.github.io/epg/guides/ci/canalplus-afrique.com.epg.xml
https://iptv-org.github.io/epg/guides/ci/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/lv/tv.lv.epg.xml
https://iptv-org.github.io/epg/guides/lb-ar/osn.com.epg.xml
https://iptv-org.github.io/epg/guides/lb-en/osn.com.epg.xml
https://iptv-org.github.io/epg/guides/ls/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/ls/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/lr/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/ly-ar/osn.com.epg.xml
https://iptv-org.github.io/epg/guides/ly-en/osn.com.epg.xml
https://iptv-org.github.io/epg/guides/mg/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/mw/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/my/astro.com.my.epg.xml
https://iptv-org.github.io/epg/guides/mw/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/my/astro.com.my.epg.xml
https://iptv-org.github.io/epg/guides/ml/canalplus-afrique.com.epg.xml
https://iptv-org.github.io/epg/guides/ml/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/mq/canalplus-caraibes.com.epg.xml
https://iptv-org.github.io/epg/guides/ni/gatotv.com.epg.xml
https://iptv-org.github.io/epg/guides/ne/canalplus-afrique.com.epg.xml
https://iptv-org.github.io/epg/guides/ne/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/ng/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/ng/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/mk/maxtvgo.mk.epg.xml
https://iptv-org.github.io/epg/guides/mk/tvarenasport.com.epg.xml
https://iptv-org.github.io/epg/guides/no/allente.se.epg.xml
https://iptv-org.github.io/epg/guides/py/gatotv.com.epg.xml
https://iptv-org.github.io/epg/guides/pe/gatotv.com.epg.xml
https://iptv-org.github.io/epg/guides/pe/mi.tv.epg.xml
https://iptv-org.github.io/epg/guides/pl/programtv.onet.pl.epg.xml
https://iptv-org.github.io/epg/guides/pt/meo.pt.epg.xml
https://iptv-org.github.io/epg/guides/pl/programtv.onet.pl.epg.xml
https://iptv-org.github.io/epg/guides/pt/meo.pt.epg.xml
https://iptv-org.github.io/epg/guides/qa-ar/osn.com.epg.xml
https://iptv-org.github.io/epg/guides/qa-en/osn.com.epg.xml
https://iptv-org.github.io/epg/guides/qa/beinsports.com.epg.xml
https://iptv-org.github.io/epg/guides/cg/canalplus-afrique.com.epg.xml
https://iptv-org.github.io/epg/guides/cg/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/ro/programetv.ro.epg.xml
https://iptv-org.github.io/epg/guides/ru/tv.yandex.ru.epg.xml
https://iptv-org.github.io/epg/guides/ru/tv.yandex.ru.epg.xml
https://iptv-org.github.io/epg/guides/rw/canalplus-afrique.com.epg.xml
https://iptv-org.github.io/epg/guides/rw/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/re/canalplus-reunion.com.epg.xml
https://iptv-org.github.io/epg/guides/sl/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/si/tv2go.t-2.net.epg.xml
https://iptv-org.github.io/epg/guides/so/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/za/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/za/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/ss/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/es/programacion-tv.elpais.com.epg.xml
https://iptv-org.github.io/epg/guides/es/programacion-tv.elpais.com.epg.xml
https://iptv-org.github.io/epg/guides/es/gatotv.com.epg.xml
https://iptv-org.github.io/epg/guides/sd/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/sz/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/se/allente.se.epg.xml
https://iptv-org.github.io/epg/guides/se/allente.se.epg.xml
https://iptv-org.github.io/epg/guides/ch/tv.blue.ch.epg.xml
https://iptv-org.github.io/epg/guides/st/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/tz/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/tg/canalplus-afrique.com.epg.xml
https://iptv-org.github.io/epg/guides/tg/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/tr/tvplus.com.tr.epg.xml
https://iptv-org.github.io/epg/guides/tr/digiturk.com.tr.epg.xml
https://iptv-org.github.io/epg/guides/tr/dsmart.com.tr.epg.xml
https://iptv-org.github.io/epg/guides/tr/digiturk.com.tr.epg.xml
https://iptv-org.github.io/epg/guides/tr/dsmart.com.tr.epg.xml
https://iptv-org.github.io/epg/guides/ug/dstv.com.epg.xml
https://iptv-org.github.io/epg/guides/ua/tvgid.ua.epg.xml
https://iptv-org.github.io/epg/guides/ae-ar/osn.com.epg.xml
https://iptv-org.github.io/epg/guides/ae-en/osn.com.epg.xml
https://iptv-org.github.io/epg/guides/uk/sky.com.epg.xml
https://iptv-org.github.io/epg/guides/uk/sky.com.epg.xml
https://iptv-org.github.io/epg/guides/uk/ontvtonight.com.epg.xml
https://iptv-org.github.io/epg/guides/us/tvtv.us.epg.xml
https://iptv-org.github.io/epg/guides/us/tvtv.us.epg.xml
https://iptv-org.github.io/epg/guides/us/directv.com.epg.xml
https://iptv-org.github.io/epg/guides/us/tvguide.com.epg.xml
https://iptv-org.github.io/epg/guides/us/gatotv.com.epg.xml