mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 17:10:07 -04:00
Create andorradifusio.ad.yml
This commit is contained in:
parent
edcb383f46
commit
6eb27cf7c2
1 changed files with 29 additions and 0 deletions
29
.github/workflows/andorradifusio.ad.yml
vendored
Normal file
29
.github/workflows/andorradifusio.ad.yml
vendored
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
name: andorradifusio.ad
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * *'
|
||||||
|
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: 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'
|
Loading…
Add table
Add a link
Reference in a new issue