2025-02-22 20:14:27 -06:00
|
|
|
name: Format code
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
format-kernel:
|
|
|
|
name: Format the kernel
|
2025-02-22 20:17:24 -06:00
|
|
|
runs-on: docker
|
2025-02-22 20:14:27 -06:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
2025-02-23 08:20:12 -06:00
|
|
|
- uses: msrd0/rust-toolchain@nightly
|
2025-02-22 20:14:27 -06:00
|
|
|
- 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"
|
|
|
|
git push
|
|
|
|
|