kernel/.forgejo/workflows/format.yml
Arthur Beck 0dc14b152f
All checks were successful
Format code / Format the kernel (push) Successful in 22s
change something slightly
2025-02-23 11:40:37 -06:00

21 lines
No EOL
542 B
YAML

name: Format code
on: [push]
jobs:
format-kernel:
name: Format the kernel
runs-on: docker
steps:
- uses: actions/checkout@v4
- uses: msrd0/rust-toolchain@nightly
- run: rustup component add rustfmt
- run: |
cd kernel
./format
- name: Commit format
run: |
git config --global user.name 'Formatter'
git config --global user.email 'formatter@noreply.git.verygay.fyi'
git commit -am "Automated format" || true
git push || true