Daily Job #229
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Daily Job | |
on: | |
schedule: | |
- cron: "0 20 * * *" | |
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 nmap | |
- name: Run Multitest Script | |
#working-directory: iptv/speedtest | |
run: | | |
cd $GITHUB_WORKSPACE/speedtest | |
chmod +x speed.sh | |
#bash ./multi_test.sh | |
bash ./fofa.sh | |
- name: Update Results | |
run: | | |
cd $GITHUB_WORKSPACE/speedtest | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git add . | |
git commit -m "Update results" | |
git push |