Skip to content

Daily JavaScript Script Execution #56

Daily JavaScript Script Execution

Daily JavaScript Script Execution #56

Workflow file for this run

name: Daily JavaScript Script Execution
on:
schedule:
- cron: '0 0 * * *' # 每天午夜执行
jobs:
run-script:
runs-on: ubuntu-latest
env:
AUTHORIZATION: ${{ secrets.AUTHORIZATION }}
VOTE_ID: ${{ secrets.VOTE_ID }}
WECHAT_NOTIFY_KEY: ${{ secrets.WECHAT_NOTIFY_KEY }}
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '14'
- name: Install Dependencies
run: npm install
- name: Run JavaScript Script
run: node vote.js