This repository has been archived by the owner on Oct 10, 2024. It is now read-only.
Update Rust crate relative-path to 1.9.3 #1018
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push] | |
name: Lint codebase | |
jobs: | |
code_lint: | |
name: Lint codebase | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout codebase | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: nightly | |
default: true | |
profile: minimal | |
components: clippy, rustfmt | |
- name: Correct code files | |
uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: --fix -Z unstable-options | |
- name: Commit changes to code, if any | |
run: | | |
git config --global user.name 'Dokkoo' | |
git config --global user.email '[email protected]' | |
git diff --quiet && git diff --staged --quiet || git commit -am "Automatically approved suggested code corrections by linter" | |
git push |