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 Jun 20, 2024
1 parent 946c376 commit a8ca14c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Automated Code Formatting

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

jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Install cargo fmt
run: cargo install --force rustfmt
- name: Format code
run: cargo fmt --all -- --check
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6

0 comments on commit a8ca14c

Please sign in to comment.