Skip to content

Daily Job

Daily Job #3

Workflow file for this run

name: Daily Job
on:
schedule:
- cron: "0 6 * * *"
workflow_dispatch:
jobs:
run-script:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y yt-dlp sed netcat
- name: Run Multitest Script
working-directory: iptv/speedtest
run: |
./speedtest/multi_test.sh
- name: Update Results
run: |
cd $GITHUB_WORKSPACE/iptv/speedtest/result/
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m "Update results"
git push