leigod auto pause action #2
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: leigod auto pause action | |
on: | |
push: | |
workflow_dispatch: | |
schedule: | |
# 定时任务,北京时间3点执行任务 19 + 8 = 27 % 24 = 3 | |
- cron: '0 19 * * *' | |
jobs: | |
pause: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Run npm install | |
run: | | |
npm install | |
- name: Run node index.js | |
run: | | |
node index.js | |
env: | |
USERNAME_ARR: ${{ secrets.USERNAME_ARR }} | |
PASSWORD_ARR: ${{ secrets.PASSWORD_ARR }} |