kernel/.forgejo/workflows/format.yml
ArthurB c7c4df6473
Some checks failed
Format code / Format the kernel (push) Waiting to run
Continuous Integration / ci (push) Has been cancelled
feat(actions): Use conventional commits in automated format
2025-04-28 23:07:43 +00:00

21 lines
No EOL
563 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 "format(main kernel): Automated format" || true
git push || true