Skip to content

Commit

Permalink
Automated code formatting action now uses better dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Le0X8 committed Jun 20, 2024
1 parent 9d59bb5 commit 8966de1
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,10 @@ jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
- name: Install cargo fmt
run: cargo install --force rustfmt-nightly
- name: Format code
run: cargo fmt
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
components: rustfmt
- uses: mbrobbel/rustfmt-check@master
with:
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8966de1

Please sign in to comment.