Skip to content

Scrape calls for papers #926

Scrape calls for papers

Scrape calls for papers #926

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
- run: npm ci
- name: Scrape
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_BASE_URL: ${{ secrets.OPENAI_BASE_URL }}
run: xvfb-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