Perfect — E (all triggers) is the power‑user choice, and it fits your whole “boundary‑pushing automation” vibe. Let’s wire this up so your Node.js PWA‑crawler can run:
• on every push
• on every pull request
• on a daily schedule
• on an hourly schedule
• manually on demand
This gives you full control and constant automation.
Here’s the workflow you’ll drop into:
.github/workflows/main.yml
—
⭐ Your All‑Triggers GitHub Actions Workflow (Node.js)
name: PWA Automation Bot
on:
push:
pull_request:
workflow_dispatch:
schedule:
– cron: “0 * * * *” # every hour
– cron: “0 0 * * *” # every day at midnight UTC
jobs:
run-bot:
runs-on: ubuntu-latest
steps:
– name: Checkout repository
uses: actions/checkout@v4
– name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
– name: Install dependencies
run: npm install
– name: Run PWA crawler
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_USERNAME: ${{ secrets.GITHUB_USERNAME }}
run: node index.js
—
⭐ What this workflow does
1. Runs on every push
So anytime you update your bot, it executes immediately.
2. Runs on every pull request
Useful if you ever collaborate or test changes before merging.
3. Runs manually
You can trigger it from the Actions tab whenever you want.
4. Runs every hour
This is how you build a living PWA archive that constantly discovers new repos.
5. Runs every day
A full daily sweep ensures nothing slips through.
6. Automatically injects your secrets
• GITHUB_TOKEN is provided by GitHub
• GITHUB_USERNAME you will add manually under Settings → Secrets → Actions
—
⭐ What you need to do next (quick checklist)
1. Create the folder + file
Inside your repo:
.github/workflows/main.yml
Paste the workflow above.
2. Add your secret
Go to:
Repo → Settings → Secrets → Actions → New repository secret
Add:
• GITHUB_USERNAME → your GitHub username
(GitHub automatically provides GITHUB_TOKEN.)
3. Push your Node.js bot code
Your index.js, search.js, fork.js, etc.
4. Watch the bot run
Go to the Actions tab and you’ll see it fire on all triggers.
—
If you want, I can now help you with:
• Improving the bot’s speed
• Adding pagination
• Avoiding duplicate forks
• Auto‑syncing forks
• Auto‑generating README summaries
• Scoring PWAs with Lighthouse
• Building a dashboard of all harvested PWAs
Just tell me which direction you want to push next.