mirror of
https://github.com/actions/setup-node
synced 2024-09-19 14:25:19 +00:00
17 lines
584 B
Bash
Executable file
17 lines
584 B
Bash
Executable file
#!/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
|