name: Update Single Page

on:
  push:
    branches: main
  workflow_dispatch:

jobs:
  update:
    name: Update Single Page
    runs-on: ubuntu-latest

    permissions:
      contents: write

    steps:
      - uses: actions/checkout@v4

      - name: Setup Python
        uses: actions/setup-python@v4
        with:
          python-version: "3.10"

      - name: Create local changes
        run: python .github/single-page.py
      - uses: stefanzweifel/git-auto-commit-action@v4
        with:
          commit_message: "♻️ update single page"