mirror of
https://gitea.com/actions/setup-java.git
synced 2024-06-29 11:24:29 +02:00
17 lines
583 B
Bash
17 lines
583 B
Bash
|
#!/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 ----------------------------------------
|
||
|
echo "::error::Unstaged changes detected. Locally try running: git clean -ffdx && npm ci && npm run pre-checkin"
|
||
|
exit 1
|
||
|
fi
|