Skip to content

grab

grab #39

Workflow file for this run

name: grab
on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
schedule:
- cron: '0 0 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- uses: actions/setup-python@v2
with:
python-version: '3.12'
- name: download & merge & stats
run: |
chmod +x ./build.sh
echo -e "--------------- downloading xmltv files\n"
epg_urls=(${EPG_URLS//;/ })
./build.sh --download "${epg_urls[@]}"
echo -e "--------------- merging xmltv files\n"
./build.sh --merge
echo -e "--------------- epg stats\n"
./build.sh --stats
env:
EPG_URLS: ${{ secrets.EPG_URLS }}
- name: Commit & Push changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.API_TOKEN }}
author_email: "[email protected]"
author_name: "Heni Fazzani"
commit_message: "autopublish ${date}: Merge xmltv files"
branch: "master"