fix
This commit is contained in:
@@ -21,7 +21,9 @@ jobs:
|
||||
- name: "check for uncommitted changes"
|
||||
# Ensure no changes
|
||||
run: |
|
||||
git add . && git diff --exit-code --stat \
|
||||
|| (echo "##[error] found changed files after build. please 'yarn build && npm run format'" \
|
||||
"and check in all changes" \
|
||||
&& exit 1)
|
||||
git add .
|
||||
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."
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user