Skip to content

Scrape calls for papers #900

Scrape calls for papers

Scrape calls for papers #900

Workflow file for this run

name: Scrape calls for papers
on:
workflow_dispatch:
schedule:
- cron: '10 2 * * *'
jobs:
scrape:
runs-on: ubuntu-latest
steps:
- name: Checkout this repository
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18.x
cache: 'npm'
- run: npm ci
- run: npx playwright install chromium
- name: Scrape
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: npm run scrape --if-present
- run: npm run rss --if-present
- name: Commit and push if it changed
run: |-
git config user.name "Calls for Papers Scraper"
git config user.email "[email protected]"
git add -A
timestamp=$(date -u)
git commit -m "[SCRAPER]: ${timestamp}" || exit 0
git push