have to fetch main before we can checkout the rustfmt.toml

This commit is contained in:
bunnie 2024-01-11 21:49:46 +08:00
parent 5f0e2a48b0
commit 6405f91fd7

View file

@ -14,7 +14,9 @@ jobs:
rustup component add rustfmt --toolchain nightly
- name: Ensure the `main` branch rustfmt is applied for the run
run: git checkout main rustfmt.toml
run: |
git fetch --no-tags --prune --no-recurse-submodules --depth=1 origin/main
git checkout main rustfmt.toml
- name: Run cargo +nightly fmt --check
run: cargo +nightly fmt --check