Skip to content

Start parser

Start parser #556

Workflow file for this run

name: Start parser
on:
schedule:
- cron: 30 8 * * * # Every day at 8:30 UTC (10:30 KIEV)
workflow_dispatch:
jobs:
start:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Fetch snapshot
run: npm run fetch
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Run parser
run: npm run scrap
- name: Commit changes
run: |
git config --global user.name '@digitalandyeu-bot'
git config --global user.email '[email protected]'
git add db.json
git commit -m "Added $(date '+%Y-%m-%d') db.json"
git push