This commit is contained in:
Opportunity
2020-07-07 17:33:11 +08:00
Unverified
parent b94221136f
commit 4e7cd23a3b
+6 -4
View File
@@ -21,7 +21,9 @@ jobs:
- name: "check for uncommitted changes" - name: "check for uncommitted changes"
# Ensure no changes # Ensure no changes
run: | run: |
git add . && git diff --exit-code --stat \ git add .
|| (echo "##[error] found changed files after build. please 'yarn build && npm run format'" \ if git diff --cached --stat --exit-code; then
"and check in all changes" \ else
&& exit 1) echo "##[error] Found changed files after build. Please 'yarn build && npm run format' and check in all changes."
exit 1
fi