Skip to content

Commit

Permalink
setting mode=review so it doesn't silently commit. also run on PRs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ozgurakgun authored Oct 24, 2023
1 parent ffb45c1 commit c8b3a9f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/rustfmt.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
on: push

# see: https://github.com/marketplace/actions/rust-rustfmt-check

name: rustfmt

on:
push:
pull_request:

permissions:
pull-requests: write

jobs:
format:
runs-on: ubuntu-latest
Expand All @@ -15,3 +20,4 @@ jobs:
- uses: mbrobbel/rustfmt-check@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
mode: review

0 comments on commit c8b3a9f

Please sign in to comment.