Skip to content

Scrape TechCrunch

Scrape TechCrunch #910

name: Scrape TechCrunch
on:
schedule:
- cron: "0 */4 * * *" # Runs every 4 hours
workflow_dispatch: # Allows manual triggering of the workflow
jobs:
scrape:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "18"
- name: Install dependencies
run: npm install
- name: Run scraper
run: npm run startScrape
- name: Commit and push changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add README.md
git commit -m "🤖 Scrape: Updated TechCrunch Startups section with latest news"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}