forked from rahultoppur/CY4740FinalProject
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
80951c8
commit 4dfc2a0
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
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
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 |