Hourly Run #5952
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: Hourly Run | |
| on: | |
| schedule: | |
| - cron: '0 * * * *' # Run every hour | |
| workflow_dispatch: # Allow manual triggering | |
| jobs: | |
| run-script: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Get current week | |
| id: date | |
| run: echo "week=$(date +'%G-W%V')" >> $GITHUB_OUTPUT | |
| - name: Cache shared directories | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| .cache | |
| .cache-ai | |
| key: shared-cache-${{ runner.os }}-${{ steps.date.outputs.week }} | |
| restore-keys: | | |
| shared-cache-${{ runner.os }}- | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Post Recent PRs to Discord | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITHUB_BOT_TOKEN: ${{ secrets.TSCIRCUIT_BOT_TOKEN }} | |
| OPENAI_API_KEY: ${{ secrets.TSCIRCUIT_BOT_OPENAI_KEY }} | |
| DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }} | |
| HTTP_WEBHOOK_URL: ${{ secrets.HTTP_WEBHOOK_URL }} | |
| SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |
| SLACK_CHANNEL_ID: ${{ secrets.SLACK_CHANNEL_ID }} | |
| GITHUB_ORG: 'tscircuit' | |
| FULL_REPO_LIST: 'true' | |
| run: bun run scripts/pr-notifications.ts | |
| - name: Post Recent Issues to Discord | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| ISSUES_DISCORD_WEBHOOK_URL: ${{ secrets.ISSUES_DISCORD_WEBHOOK_URL }} | |
| GITHUB_ORG: 'tscircuit' | |
| FULL_REPO_LIST: 'true' | |
| run: bun run scripts/issue-notifications.ts |