Skip to content

Commit

Permalink
Remove remaining cruft
Browse files Browse the repository at this point in the history
  • Loading branch information
juberti committed Apr 22, 2024
1 parent 4552713 commit c0f19fa
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 13,140 deletions.
35 changes: 16 additions & 19 deletions .github/workflows/fetchLatestData.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@
# macOS-specific files
.DS_Store

.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
Loading

0 comments on commit c0f19fa

Please sign in to comment.