2019-12-03 15:28:59 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [[ "$(git status --porcelain)" != "" ]]; then
|
|
|
|
echo ----------------------------------------
|
|
|
|
echo git status
|
|
|
|
echo ----------------------------------------
|
|
|
|
git status
|
|
|
|
echo ----------------------------------------
|
|
|
|
echo git diff
|
|
|
|
echo ----------------------------------------
|
|
|
|
git diff
|
|
|
|
echo ----------------------------------------
|
|
|
|
echo Troubleshooting
|
|
|
|
echo ----------------------------------------
|
2020-05-31 21:48:32 +00:00
|
|
|
echo "::error::Unstaged changes detected. Locally try running: git clean -ffdx && npm ci && npm run format && npm run build"
|
2019-12-03 15:28:59 +00:00
|
|
|
exit 1
|
|
|
|
fi
|