Skip to content

scraper

scraper #958

Workflow file for this run

name: scraper
on:
schedule:
- cron: '0 0 * * *'
jobs:
scrape:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{secrets.PAT}}
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Setup Node.js environment
uses: actions/[email protected]
- name: Create env file
run: |
touch .env
echo PUBLIC_APIS_README=${{ secrets.PUBLIC_APIS_README }} >> .env
- run: npm ci
- run: npm run scraper
- uses: stefanzweifel/[email protected]
with:
commit_message: "chore(data): update at ${{ steps.date.outputs.date }}"
branch: main
env:
GITHUB_TOKEN: ${{ secrets.PAT }}