This repository has been archived by the owner on Oct 10, 2024. It is now read-only.
Update Rust crate actix-web to 4.4.1 #939
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: Format codebase | |
jobs: | |
code_format: | |
name: Format 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 | |
profile: minimal | |
components: clippy, rustfmt | |
- name: Format code files | |
uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
- 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 enforce Rust styleguide" | |
git push |