From 53bf4549434f4b678a45f391e96da9e9508c3087 Mon Sep 17 00:00:00 2001 From: Dominik Przybysz Date: Mon, 1 Jun 2026 18:48:21 +0200 Subject: [PATCH 1/2] [MAINTENANCE] Fail build on code changes after build --- .github/workflows/build.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3499af217..0ff6985f9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,3 +44,15 @@ jobs: - name: Build all shell: bash run: ./mvnw -U -e -B -ntp clean install + - name: Check for dirty workspace + shell: bash + run: | + DIRTY=$(git status --porcelain) + if [ -n "$DIRTY" ]; then + echo "::error title=Dirty workspace::Build modified files. Please run the build locally and commit all the changes." + echo "$DIRTY" | while IFS= read -r line; do + file="${line:3}" + echo "::error file=$file,title=Unexpected change::This file was modified or created by the build" + done + exit 1 + fi From ea821f6d363ebc1ad61165169f8ef59037474c53 Mon Sep 17 00:00:00 2001 From: Dominik Przybysz Date: Wed, 3 Jun 2026 18:48:55 +0200 Subject: [PATCH 2/2] [MAINTENANCE] Describe reason for failing build on dirty workspace --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0ff6985f9..8bfbd2d7b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,6 +45,8 @@ jobs: shell: bash run: ./mvnw -U -e -B -ntp clean install - name: Check for dirty workspace + # When dependency is updated then the tck bndruns may have updated version ranges + # If that happends we want to have it explicitly committed to the repository. shell: bash run: | DIRTY=$(git status --porcelain)