fallback-if 1.0.1

Fall back to an alternative given some predicate
Documentation
name: "ci-fmt"
on:
  pull_request:
  push:
    branches:
      - master
      - main
jobs:
  fmt:
    name: fmt
    runs-on: ubuntu-latest
    steps:
      - name: checkout_repository
        uses: actions/checkout@v4

      - name: install_rust
        uses: dtolnay/rust-toolchain@stable
        with:
          components: rustfmt

      - name: check_formatting
        run: |
          cargo fmt -- --check