File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ name: Develop CI
33on :
44 push :
55 branches : [ develop ]
6+ pull_request :
7+ branches : [ develop ]
68
79jobs :
810 build :
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
You can’t perform that action at this time.
0 commit comments