批量访问保活进程 #122
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: 批量访问保活进程 | |
on: | |
schedule: | |
# 使用cron表达式定义任务运行的时间 | |
#github最小时间间隔为10分钟 | |
- cron: '*/10 * * * *' | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: 安装依赖 | |
run: | | |
sudo apt-get install jq | |
- name: 访问各个serv00并执行保活脚本 | |
env: | |
HOSTS_JSON: ${{ secrets.HOSTS_JSON }} | |
TELEGRAM_TOKEN: ${{secrets.TELEGRAM_TOKEN}} | |
TELEGRAM_USERID: ${{secrets.TELEGRAM_USERID}} | |
WXSENDKEY: ${{secrets.WXSENDKEY}} | |
SENDTYPE: ${{secrets.SENDTYPE}} | |
BUTTON_URL: ${{secrets.BUTTON_URL}} | |
AUTOUPDATE: ${{vars.AUTOUPDATE}} | |
LOGININFO: ${{vars.LOGININFO}} | |
TOKEN: ${{secrets.TOKEN}} | |
run: | | |
chmod +x ./revive_node.sh | |
./revive_node.sh |