Skip to content

Commit

Permalink
Create updatedb.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghaisheng authored Dec 18, 2024
1 parent 80951c8 commit 4dfc2a0
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/updatedb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Daily save rank Run

on:
schedule:
- cron: '0 0 * * *' # Runs at midnight UTC every day
workflow_dispatch: # Allow manual trigger from GitHub Actions UI

jobs:
run_script:
runs-on: ubuntu-latest # Use the latest Ubuntu runner

steps:
- name: Checkout repository
uses: actions/checkout@v3 # Checks out the code from the repository

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16' # Specify the Node.js version, e.g., 16.x

- name: Install dependencies
run: |
npm install # Install dependencies from package.json
- name: Run the script
run: |
node rankhistory/updatedaily.js # Replace with the actual path to your script

0 comments on commit 4dfc2a0

Please sign in to comment.