Merge pull request #2298 from spotify/rugvip/wf

workflows: ensure that working directory is clean at the end of build
This commit is contained in:
Patrik Oldsberg
2020-09-06 11:09:36 +02:00
committed by GitHub
+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