Skip to content

Commit

Permalink
feat: vote
Browse files Browse the repository at this point in the history
  • Loading branch information
BroadFun\dong.han committed Feb 22, 2024
1 parent 28d3034 commit 1dadc31
Show file tree
Hide file tree
Showing 6 changed files with 625 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/run.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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: Run JavaScript Script
run: node vote.js
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
Binary file modified README.md
Binary file not shown.
Loading

0 comments on commit 1dadc31

Please sign in to comment.