-
Notifications
You must be signed in to change notification settings - Fork 4
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
Showing
9 changed files
with
28 additions
and
13,140 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 |
---|---|---|
|
@@ -3,31 +3,28 @@ name: Generate Latest Data | |
on: | ||
schedule: | ||
# Runs at 9 AM UTC every day | ||
- cron: '0 9 * * *' | ||
- cron: "0 9 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
execute-script: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '20' | ||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "20" | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Get data and update file | ||
run: | | ||
OUTPUT="$(node ./utils/GenerateLatestData.js)" | ||
echo "$OUTPUT" > ./website/public/data/latest.json | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add ./website/public/data/latest.json | ||
git commit -m "Update latest data" | ||
git push | ||
- name: Get data and update file | ||
run: | | ||
OUTPUT="$(node ./utils/GenerateLatestData.js)" | ||
echo "$OUTPUT" > ./website/public/data/latest.json | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add ./website/public/data/latest.json | ||
git commit -m "Update latest data" | ||
git push |
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
Oops, something went wrong.