Added exceptions to improve stability

This commit is contained in:
2021-02-19 19:16:25 +01:00
parent 5e56c64388
commit 1f62e028b6

View File

@@ -60,8 +60,8 @@ echo "Files:"
prettier $INPUT_PRETTIER_OPTIONS || echo "Problem running prettier with $INPUT_PRETTIER_OPTIONS"
# Ignore node modules and other action created files
rm -r node_modules/
git reset --hard package-lock.json || rm package-lock.json
rm -r node_modules/ || echo "No node_modules/ folder."
git reset --hard package-lock.json || rm package-lock.json || echo "No node_modules/ folder."
# To keep runtime good, just continue if something was changed
if _git_changed; then