Update GitHub Frontier #716
This file contains hidden or 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 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 |