Skip to content

Experiment with CI workflow #7

Experiment with CI workflow

Experiment with CI workflow #7

Workflow file for this run

---
name: Format Check and Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
style:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v6
with:
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.event.pull_request.head.ref || github.ref_name }}
- name: Set up tools
run: |
python3 -m pip install --upgrade pip
python3 -m pip install clang-format==20.1.8 findent
- name: Run format script
run: python3 tools/format_all.py
- name: Auto-commit formatting changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "style: Auto-format code using format_all.py"
commit_user_name: "github-actions[bot]"
commit_user_email: "github-actions[bot]@users.noreply.github.com"