Skip to content

Scraper

Scraper #1001

Workflow file for this run

name: Scraper
on:
schedule:
# run on the same day as the changes were made
- cron: '0 23 * * *'
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.8'
cache: 'pip'
- name: pull kek data
run: |
pip install -r requirements.txt
python update.py
- name: git config user
run: |
curl -s -u ${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }} https://github.com/gitapi/users/${GITHUB_ACTOR} > ${GITHUB_ACTOR}.json
git config user.email "$(cat ${GITHUB_ACTOR}.json | jq -r .email)"
git config user.name "$(cat ${GITHUB_ACTOR}.json | jq -r .name)"
- name: commit changes
run: |
git add docs/data
git commit -m"commit changes `date -Iseconds`" || true
- name: push changes
run: |
git push