Skip to content

Rust Example

Repository: janitor-sh/rust-example

Terminal window
cargo run
Terminal window
janitor --no-commit

The example workflow runs on pushes and pull requests to main and executes janitor using Clippy:

- name: Install clippy
run: rustup component add clippy
- uses: janitor-sh/action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tool: "clippy"
- name: Push Janitor commit
run: git push