Skip to content

atcoder rating crawler #120

atcoder rating crawler

atcoder rating crawler #120

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: atcoder rating crawler
on:
schedule:
- cron: '0 0 */3 * *'
# push:
# branches: [ master ]
workflow_dispatch:
jobs:
update_and_push:
runs-on: ubuntu-latest
env:
REPO: https://${{github.actor}}:${{secrets.GITHUB_TOKEN}}@github.com/${{github.repository}}.git
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run
run: python run.py
- name: push Result
run: |
git config --global user.email "[email protected]"
git config --global user.name "workflow user"
git add .
git commit -m 'update index.html by Github Actions' && git push ${REPO} master || true