Skip to content

Commit

Permalink
workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiejun committed Aug 13, 2024
1 parent 78ddba2 commit 35abe6c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: 批量保活进程

on:
schedule:
# 使用cron表达式定义任务运行的时间
- cron: '*/10 * * * *'
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: 安装依赖
run: sudo apt-get install expect
sudo apt-get intall jq

- name: 登录各个serv00并执行保活脚本
env:
HOST_JSON: ${{ secrets.HOST_JSON }}
TELEGRAM_TOKEN: ${{secrets.TELEGRAM_TOKEN}}
TELEGRAM_USERID: ${{secrets.TELEGRAM_USERID}}
WXSENDKEY: ${{secrets.WXSENDKEY}}
run: |
chmod +x ./revive.sh
./revive.sh
4 changes: 4 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,10 @@ createConfigFile(){
done
json_content="${json_content%,}]}"

echo $json_content > ./config.json

echo -e "${YELLOW} 设置完成! ${RESET} "

}

setConfig(){
Expand Down

0 comments on commit 35abe6c

Please sign in to comment.