This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
Update Website Data #3280
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
name: Update Website Data | |
on: | |
schedule: | |
# From 8AM EST to 10PM EST | |
- cron: "0 13-23,0-3 * * *" | |
jobs: | |
update_stats: | |
runs-on: ubuntu-latest | |
environment: website-env | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v2-beta | |
with: | |
node-version: 16.x | |
- name: Use pnpm | |
uses: pnpm/action-setup@v2.0.1 | |
with: | |
version: 6.28.0 | |
- name: Install dependencies | |
run: pnpm install --filter=@leonzalion-website/update-stats | |
- name: Run update stats script | |
run: pnpm update-stats | |
env: | |
GITHUB_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }} | |
WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }} | |
RESCUETIME_API_KEY: ${{ secrets.RESCUETIME_API_KEY }} |