Repository navigation
Daily Puzzle Commit #45
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: Daily Puzzle Commit | |
| permissions: | |
| contents: read | |
| on: | |
| schedule: | |
| # Every day at 00:00 UTC | |
| - cron: "0 0 * * *" | |
| workflow_dispatch: | |
| jobs: | |
| commit: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: server | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| cache-dependency-path: server/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run daily commit | |
| run: npm run puzzle:commit | |
| env: | |
| DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
| DIRECT_URL: ${{ secrets.DIRECT_URL }} | |
| HIVE_NETWORK: mainnet | |
| HIVE_APP_ACCOUNT: ${{ secrets.HIVE_APP_ACCOUNT }} | |
| HIVE_APP_POSTING_KEY: ${{ secrets.HIVE_APP_POSTING_KEY }} | |
| PUZZLE_WORD_LENGTHS: ${{ vars.PUZZLE_WORD_LENGTHS }} |