Skip to content

Commit

Permalink
update github workflow fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
M3DZIK committed Feb 27, 2022
1 parent e129ab0 commit f0a52fa
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions .github/workflows/fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Git
run: |
git config --global user.name "MedzikUserBot"
git config --global user.email "[email protected]"
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
Expand All @@ -31,19 +26,8 @@ jobs:
override: true
components: rustfmt, clippy

- name: cargo fmt
- name: Check cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all

- name: Commit changes
run: |
git add .
git diff-index --quiet HEAD || git commit -m "rustfmt"
- name: Push changes
uses: ad-m/github-push-action@b007e7b818e33b04afd056e4c4b57ba917145d7a
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: 'main'
args: --all --check

0 comments on commit f0a52fa

Please sign in to comment.