Scrape HN for Games #339
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: Scrape HN for Games | |
| on: | |
| schedule: | |
| - cron: '0 */6 * * *' # every 6 hours | |
| workflow_dispatch: {} # manual trigger for testing | |
| jobs: | |
| scrape: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Scrape HN and create issues | |
| run: node scripts/scrape-hn.mjs --create-issues --days=30 | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |