Files
action-versions/script/verify-no-unstaged-changes.sh
Tingluo Huang 7751908620 init
2023-09-18 01:13:38 +00:00

12 lines
203 B
Bash
Executable File

#!/bin/bash
set -e
set -x
if [[ "$(git status --porcelain)" != "" ]]; then
git status
git diff
echo "::error::Unstaged changes detected. Locally try running: script/build.sh"
exit 1
fi