Skip to content

Commit d39ec2a

Browse files
committed
Change git status check to use git diff for improved accuracy in detecting uncommitted changes
1 parent 41d1c40 commit d39ec2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/rust-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- run: cargo build --verbose
3131
working-directory: ${{ env.CWD }}
3232
- name: "is docs updated and generated files are committed"
33-
run: exit $(git status --porcelain | wc -l)
33+
run: git diff --exit-code
3434
- run: cargo test --verbose
3535
working-directory: ${{ env.CWD }}
3636
- run: cargo test --verbose --lib --bins --tests --features serde_derive

0 commit comments

Comments
 (0)