Skip to content

Commit a8e4f0c

Browse files
authored
Update develop-pr.yml
1 parent 07f8f6f commit a8e4f0c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/develop-pr.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,21 @@ jobs:
2626
2727
- name: Build with Maven
2828
run: mvn -B clean package -Pproduction
29+
30+
- name: Check for uncommited changes
31+
run: |
32+
if [[ "$(git status --porcelain)" != "" ]]; then
33+
echo ----------------------------------------
34+
echo git status
35+
echo ----------------------------------------
36+
git status
37+
echo ----------------------------------------
38+
echo git diff
39+
echo ----------------------------------------
40+
git diff
41+
echo ----------------------------------------
42+
echo Troubleshooting
43+
echo ----------------------------------------
44+
echo "::error::Unstaged changes detected. Locally try running: git clean -ffdx && mvn -B clean package -Pproduction"
45+
exit 1
46+
fi

0 commit comments

Comments
 (0)