kernel/.forgejo/workflows/format.yml
Arthur Beck 0b2d7e029f
All checks were successful
Format code / Format the kernel (push) Successful in 49s
made it not exit with an error if no changes need to be made
2025-02-23 08:36:12 -06:00

21 lines
No EOL
534 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