fix
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user