Skip to content

Merge pull request #39 from 255doesnotexist/dependabot/cargo/serde-1.… #141

Merge pull request #39 from 255doesnotexist/dependabot/cargo/serde-1.…

Merge pull request #39 from 255doesnotexist/dependabot/cargo/serde-1.… #141

Workflow file for this run

name: Format
on:
push:
branches: [ main ]
jobs:
format:
runs-on: [self-hosted, linux]
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt
- name: Format code
run: cargo fmt --all
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "style: apply automatic formatting"
file_pattern: '**/*.rs'