This is an automated email from the ASF dual-hosted git repository.
alien11689 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/aries-rsa.git
The following commit(s) were added to refs/heads/master by this push:
new 27e4517a [MAINTENANCE] Fail build on code changes after build (#130)
27e4517a is described below
commit 27e4517a7b76e7ae2b0415d8897f319073ce9529
Author: Dominik Przybysz <[email protected]>
AuthorDate: Wed Jun 3 21:01:38 2026 +0200
[MAINTENANCE] Fail build on code changes after build (#130)
---
.github/workflows/build.yml | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 3499af21..8bfbd2d7 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -44,3 +44,17 @@ jobs:
- name: Build all
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)
+ 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