feat: combined ratings archive workflows

This commit is contained in:
TrèsAbhi committed 2023-11-25 20:01:12 -06:00
1 parent 55729c5eda
commit c87a75f3fd
6 files changed
+18 -108

No files matched your search

+38
View File
@@ -0,0 +1,38 @@
name: CD North America Ratings
# latest: '0 0 * * *'
# na midnight: '0 5 * * *'
on:
schedule:
- cron: '0 0 * * *'
- cron: '0 5 * * *'
jobs:
host:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use node
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Install Yarn
run: npm install --location=global yarn
- name: Use node_modules cache
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn
- name: Generate leaderboard
run: GH_TOKEN=${{ secrets.GH_TOKEN }} yarn publish:ratingsleaderboard --region=na --target=${{ github.event.schedule == '0 0 * * *' && 'latest' || 'midnight' }}