This is an automated email from the ASF dual-hosted git repository. alien11689 pushed a commit to branch fail-build-on-code-changes-after-build in repository https://gitbox.apache.org/repos/asf/aries-rsa.git
commit c76fa8372cd98bb388997f47564b0799493deb09 Author: Dominik Przybysz <[email protected]> AuthorDate: Mon Jun 1 18:48:21 2026 +0200 [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 3499af21..0ff6985f 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
