mirror of
https://gitlab.com/pezkuwichain/pezkuwi-sdk.git
synced 2026-11-25 17:39:54 +00:00
fix(ci): use git diff --quiet instead of git status for umbrella check
git status --porcelain also reports untracked files — cargo install zepter writes .cargo/ inside the project dir on shared GitLab runners, causing false positives. git diff --quiet only checks tracked file changes.
This commit is contained in:
1 parent
2bd0f4ce47
commit
c4d47da770
1 file changed
+1
-4
+1
-4
@@ -132,11 +132,8 @@ check-umbrella:
|
|||||||
zepter run default
|
zepter run default
|
||||||
cargo +nightly fmt -p pezkuwi-sdk
|
cargo +nightly fmt -p pezkuwi-sdk
|
||||||
- |
|
- |
|
||||||
if [ -n "$(git status --porcelain)" ]; then
|
if ! git diff --quiet; then
|
||||||
echo "❌ Umbrella crate is out of sync. Run: python3 scripts/generate-umbrella.py --sdk . --version <VERSION> && zepter run default"
|
echo "❌ Umbrella crate is out of sync. Run: python3 scripts/generate-umbrella.py --sdk . --version <VERSION> && zepter run default"
|
||||||
echo "--- Changed files ---"
|
|
||||||
git status --porcelain
|
|
||||||
echo "--- Diff ---"
|
|
||||||
git diff
|
git diff
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user