Skip to content

AutoUpdate

AutoUpdate #200

Workflow file for this run

name: AutoUpdate
on:
schedule:
- cron: "5 12 * * 6"
push:
branches:
- master
paths:
- '**.py'
- '**.yml'
pull_request:
paths:
- '**.py'
- '**.yml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: python -m pip install -r requirements.txt
- name: Fetch and update cases
run: python update.py
- name: Commit changes
uses: EndBug/[email protected]
# Commit only if this is not a PR
if: github.ref == 'refs/heads/master'
with:
author_name: GitHub Action
author_email: [email protected]
message: "Add new cases!"
path: "."
pattern: "*.json"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}