1name: Rustfmt 2on: pull_request 3 4jobs: 5 rustfmt: 6 name: "Rustfmt" 7 runs-on: ubuntu-latest 8 permissions: 9 pull-requests: write 10 steps: 11 - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 12 - uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7 13 with: 14 toolchain: nightly 15 override: true 16 components: rustfmt 17 - uses: LoliGothick/rustfmt-check@a4e8cd355b46d060f9d41955d17b34e7dbc29fc3 # v0.4.2 18 with: 19 token: ${{ secrets.GITHUB_TOKEN }} 20