Skip to content

Commit

Permalink
Added automated code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Le0X8 committed Oct 2, 2024
1 parent f09d1da commit f5c82a0
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/rustfmt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Automated Code Formatting

on:
push:
branches:
- "*"
- "*/*"
- "**"

jobs:
format:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- uses: mbrobbel/rustfmt-check@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
mode: pull

0 comments on commit f5c82a0

Please sign in to comment.