Daily GitHub Trending #10
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 GitHub Trending | |
| on: | |
| schedule: | |
| # 10:00 PM UTC = 8:00 AM AEST (UTC+10, Apr-Oct) | |
| # Note: during AEDT (Oct-Apr, UTC+11) this fires at 9:00 AM Sydney time | |
| - cron: '0 22 * * *' | |
| workflow_dispatch: # allows manual trigger from GitHub UI | |
| jobs: | |
| news: | |
| name: Scrape and send GitHub trending digest | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'schedule' || github.actor == 'DamengRandom' | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - name: Set up pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Run news agent | |
| env: | |
| ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | |
| DATABASE_URL: ${{ secrets.NEON_WORK_COORDINATOR_DB_URL }} | |
| TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} | |
| TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }} | |
| run: pnpm news |