Skip to content

Add new schema definition #18

Add new schema definition

Add new schema definition #18

Workflow file for this run

name: Update HTML files
on:
pull_request:
paths:
- "problems.yaml"
jobs:
generate_html:
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
ref: ${{ github.event.pull_request.head.ref }}
# Value already defaults to true, but `persist-credentials` is required to push new commits to the repository.
persist-credentials: true
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r utils/requirements.txt
- name: Generate html
run: |
python yaml_to_html.py
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: "Auto-update HTML files"