diff --git a/.github/workflows/rustfmt.yml b/.github/workflows/rustfmt.yml index c6d8f0058c..df6bbeb6eb 100644 --- a/.github/workflows/rustfmt.yml +++ b/.github/workflows/rustfmt.yml @@ -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 @@ -15,3 +20,4 @@ jobs: - uses: mbrobbel/rustfmt-check@master with: token: ${{ secrets.GITHUB_TOKEN }} + mode: review