Skip to content

rust-fmt

rust-fmt #132

Workflow file for this run

name: rust-fmt
on:
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
schedule:
- cron: '33 15 * * 3'
jobs:
rust-clippy-analyze:
name: Run cargo fmt
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
- name: Commit
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Automated commit for `cargo fmt`
branch: main
commit_options: '--no-verify --signoff'
commit_author: Format Bot <[email protected]>
status_options: '--untracked-files=no'