Skip to content

Commit a425a47

Browse files
authored
Update develop.yml
1 parent a8e4f0c commit a425a47

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

.github/workflows/develop.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Develop CI
33
on:
44
push:
55
branches: [ develop ]
6+
pull_request:
7+
branches: [ develop ]
68

79
jobs:
810
build:
@@ -22,7 +24,25 @@ jobs:
2224
path: ~/.m2/repository
2325
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
2426
restore-keys: |
25-
${{ runner.os }}-maven-
26-
27+
${{ runner.os }}-maven-
28+
2729
- name: Build with Maven
2830
run: mvn -B clean package -Pproduction
31+
32+
- name: Check for uncommited changes
33+
run: |
34+
if [[ "$(git status --porcelain)" != "" ]]; then
35+
echo ----------------------------------------
36+
echo git status
37+
echo ----------------------------------------
38+
git status
39+
echo ----------------------------------------
40+
echo git diff
41+
echo ----------------------------------------
42+
git diff
43+
echo ----------------------------------------
44+
echo Troubleshooting
45+
echo ----------------------------------------
46+
echo "::error::Unstaged changes detected. Locally try running: git clean -ffdx && mvn -B clean package -Pproduction"
47+
exit 1
48+
fi

0 commit comments

Comments
 (0)