Fixed formatting action #2
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
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 | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 |