workflows: ensure that working directory is clean at the end of build

This commit is contained in:
Patrik Oldsberg
2020-09-06 10:49:20 +02:00
parent 2a68fb8e79
commit a18c054e9b
+13
View File
@@ -99,3 +99,16 @@ jobs:
- name: verify plugin template
run: yarn lerna -- run diff -- --check
- name: ensure clean working directory
run: |
if files=$(git ls-files --exclude-standard --others --modified) && [[ -z "$files" ]]; then
exit 0
else
echo ""
echo "Working directory has been modified:"
echo ""
git status --short
echo ""
exit 1
fi