Skip to content

Update GitHub Frontier #716

Update GitHub Frontier

Update GitHub Frontier #716

name: Update GitHub Frontier
on:
schedule:
- cron: '0 */3 * * *' # Daily at 6 AM UTC
workflow_dispatch: {} # Manual trigger
jobs:
update:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm ci
- name: Update frontier
run: npx tsx scripts/update-frontier.ts
env:
NODE_ENV: production
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Commit and push
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: daily frontier update"
file_pattern: src/data/history.json