Auto Renew Server #2595
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: Auto Renew Server | |
on: | |
schedule: | |
- cron: '0 */1 * * *' | |
workflow_dispatch: # 允许手动触发 | |
jobs: | |
auto_renew: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Execute command using Repo Secrets | |
run: sshpass -p '${{ secrets.AUTO_RENEW_SERV00 }}' ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -tt qingyuwuxi@s7.serv00.com "/home/qingyuwuxi/.npm-global/bin/pm2 resurrect && exit" |