fix check

This commit is contained in:
Opportunity
2020-07-07 17:40:43 +08:00
Unverified
parent 4e7cd23a3b
commit 53545576ba
+1 -2
View File
@@ -22,8 +22,7 @@ jobs:
# Ensure no changes # Ensure no changes
run: | run: |
git add . git add .
if git diff --cached --stat --exit-code; then if ! git diff --cached --stat --exit-code; then
else
echo "##[error] Found changed files after build. Please 'yarn build && npm run format' and check in all changes." echo "##[error] Found changed files after build. Please 'yarn build && npm run format' and check in all changes."
exit 1 exit 1
fi fi