Skip to content

Weekly Top List

Weekly Top List #111

Workflow file for this run

name: Weekly Top List
on:
workflow_dispatch:
schedule:
- cron: "0 10 * * 5"
jobs:
BuildAndDeploy:
runs-on: ubuntu-latest
env:
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
TELEGRAM_MESSAGE_THREAD_ID: ${{ secrets.TELEGRAM_MESSAGE_THREAD_ID }}
steps:
- name: Checkout repo
uses: actions/checkout@v5
- name: Restore previous ranking
uses: actions/cache/restore@v4
with:
path: data/previous-ranking.json
key: ${{ runner.os }}-ranking-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-ranking-
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Run Script
run: bun run index.ts
- name: Save current ranking
uses: actions/cache/save@v4
with:
path: data/previous-ranking.json
key: ${{ runner.os }}-ranking-${{ github.run_id }}