Skip to content

Commit 753bcce

Browse files
committed
fix ci
1 parent b940cc8 commit 753bcce

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/server.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,16 @@ jobs:
8686
run: |
8787
git config --global --add safe.directory $(realpath .)
8888
cd examples/server/webui
89-
git ls-files --others --modified
9089
git status
91-
npm ci
90+
npm ci
9291
npm run build
9392
git status
94-
not_ignored_files="$(git ls-files --others --modified)"
95-
echo "Modified files: ${not_ignored_files}"
96-
if [ -n "${not_ignored_files}" ]; then
93+
modified_files="$(git status -s)"
94+
echo "Modified files: ${modified_files}"
95+
if [ -n "${modified_files}" ]; then
9796
echo "Repository is dirty or server/webui is not built as expected"
9897
echo "Hint: You may need to follow Web UI build guide in server/README.md"
99-
echo "${not_ignored_files}"
98+
echo "${modified_files}"
10099
exit 1
101100
fi
102101

0 commit comments

Comments
 (0)