mirror of
https://github.com/hexated/cloudstream-extensions-hexated.git
synced 2024-08-15 00:03:22 +00:00
30 lines
714 B
YAML
30 lines
714 B
YAML
name: Update channel domains
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '30 14 * * *'
|
|
|
|
jobs:
|
|
update:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: 3.7
|
|
|
|
- name: Install dependencies
|
|
run: pip install requests
|
|
|
|
- name: Update domains
|
|
run: python updateDomains.py
|
|
|
|
- name: Commit & Push changes
|
|
uses: actions-js/push@master
|
|
with:
|
|
message: "Domains Updated"
|
|
branch: "main"
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|