Scraper #1007
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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://api.github.com/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 |