2020-01-27 15:37:12 +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-02-05 16:20:33 +00:00
|
|
|
echo "::error::Unstaged changes detected. Locally try running: git clean -ffdx && npm ci && npm run pre-checkin"
|
2020-01-27 15:37:12 +00:00
|
|
|
exit 1
|
|
|
|
fi
|