Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/scripts/check-dirty-workspace.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
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
3 changes: 3 additions & 0 deletions .github/workflows/async.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,6 @@ jobs:
- name: Build async
shell: bash
run: mvn -U -e -B -ntp clean install -f async
- name: Check for dirty workspace
shell: bash
run: bash .github/scripts/check-dirty-workspace.sh
3 changes: 3 additions & 0 deletions .github/workflows/blueprint-maven-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,6 @@ jobs:
- name: Build blueprint plugin
shell: bash
run: mvn -U -e -B -ntp clean install -f blueprint-maven-plugin
- name: Check for dirty workspace
shell: bash
run: bash .github/scripts/check-dirty-workspace.sh
3 changes: 3 additions & 0 deletions .github/workflows/blueprint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,6 @@ jobs:
- name: Build blueprint
shell: bash
run: mvn -U -e -B -ntp clean install -f blueprint
- name: Check for dirty workspace
shell: bash
run: bash .github/scripts/check-dirty-workspace.sh
3 changes: 3 additions & 0 deletions .github/workflows/esa-ant-task.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,6 @@ jobs:
- name: Build esa-ant-task
shell: bash
run: mvn -U -e -B -ntp clean install -f esa-ant-task
- name: Check for dirty workspace
shell: bash
run: bash .github/scripts/check-dirty-workspace.sh
3 changes: 3 additions & 0 deletions .github/workflows/esa-maven-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,6 @@ jobs:
- name: Build esa-maven-plugin
shell: bash
run: mvn -U -e -B -ntp clean install -f esa-maven-plugin -P run-its
- name: Check for dirty workspace
shell: bash
run: bash .github/scripts/check-dirty-workspace.sh
3 changes: 3 additions & 0 deletions .github/workflows/jmx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,6 @@ jobs:
- name: Build jmx
shell: bash
run: mvn -U -e -B -ntp clean install -f jmx
- name: Check for dirty workspace
shell: bash
run: bash .github/scripts/check-dirty-workspace.sh
3 changes: 3 additions & 0 deletions .github/workflows/jndi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,6 @@ jobs:
- name: Build jndi
shell: bash
run: mvn -U -e -B -ntp clean install -f jndi
- name: Check for dirty workspace
shell: bash
run: bash .github/scripts/check-dirty-workspace.sh
3 changes: 3 additions & 0 deletions .github/workflows/pmd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,6 @@ jobs:
uses: jwgmeligmeyling/pmd-github-action@322e346bd76a0757c4d54ff9209e245965aa066d
with:
path: '**/pmd.xml'
- name: Check for dirty workspace
shell: bash
run: bash .github/scripts/check-dirty-workspace.sh
3 changes: 3 additions & 0 deletions .github/workflows/proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,6 @@ jobs:
- name: Build proxy
shell: bash
run: mvn -V -U -e -B -ntp clean install -f proxy
- name: Check for dirty workspace
shell: bash
run: bash .github/scripts/check-dirty-workspace.sh
3 changes: 3 additions & 0 deletions .github/workflows/pushstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,6 @@ jobs:
- name: Build pushstream
shell: bash
run: mvn -U -e -B -ntp clean install -f pushstream
- name: Check for dirty workspace
shell: bash
run: bash .github/scripts/check-dirty-workspace.sh
3 changes: 3 additions & 0 deletions .github/workflows/quiesce.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,6 @@ jobs:
- name: Build quiesce
shell: bash
run: mvn -V -U -e -B -ntp clean install -f quiesce
- name: Check for dirty workspace
shell: bash
run: bash .github/scripts/check-dirty-workspace.sh
3 changes: 3 additions & 0 deletions .github/workflows/samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,6 @@ jobs:
- name: Run idverifier
shell: bash
run: timeout --preserve-status 10 bash ./samples/blueprint/idverifier/idverifier-assembly/target/run.sh || exit 0
- name: Check for dirty workspace
shell: bash
run: bash .github/scripts/check-dirty-workspace.sh
3 changes: 3 additions & 0 deletions .github/workflows/spi-fly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,6 @@ jobs:
- name: Build spi-fly
shell: bash
run: mvn -U -e -B -ntp clean install -f spi-fly
- name: Check for dirty workspace
shell: bash
run: bash .github/scripts/check-dirty-workspace.sh
3 changes: 3 additions & 0 deletions .github/workflows/subsystem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,6 @@ jobs:
- name: Build subsystem
shell: bash
run: mvn -U -e -B -ntp clean install -f subsystem
- name: Check for dirty workspace
shell: bash
run: bash .github/scripts/check-dirty-workspace.sh
3 changes: 3 additions & 0 deletions .github/workflows/testsupport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,6 @@ jobs:
- name: Build testsupport
shell: bash
run: mvn -U -e -B -ntp clean install -f testsupport
- name: Check for dirty workspace
shell: bash
run: bash .github/scripts/check-dirty-workspace.sh
3 changes: 3 additions & 0 deletions .github/workflows/transaction.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,6 @@ jobs:
- name: Build transaction
shell: bash
run: mvn -U -e -B -ntp clean install -f transaction
- name: Check for dirty workspace
shell: bash
run: bash .github/scripts/check-dirty-workspace.sh
3 changes: 3 additions & 0 deletions .github/workflows/tutorials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,6 @@ jobs:
- name: Build tutorials
shell: bash
run: mvn -U -e -B -ntp clean install -f tutorials
- name: Check for dirty workspace
shell: bash
run: bash .github/scripts/check-dirty-workspace.sh
3 changes: 3 additions & 0 deletions .github/workflows/util.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,6 @@ jobs:
- name: Build util
shell: bash
run: mvn -V -U -e -B -ntp clean install -f util
- name: Check for dirty workspace
shell: bash
run: bash .github/scripts/check-dirty-workspace.sh
3 changes: 3 additions & 0 deletions .github/workflows/versioning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,6 @@ jobs:
- name: Build versioning
shell: bash
run: mvn -U -e -B -ntp clean install -f versioning
- name: Check for dirty workspace
shell: bash
run: bash .github/scripts/check-dirty-workspace.sh
3 changes: 3 additions & 0 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,6 @@ jobs:
- name: Build web
shell: bash
run: mvn -V -U -e -B -ntp clean install -f web
- name: Check for dirty workspace
shell: bash
run: bash .github/scripts/check-dirty-workspace.sh
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ velocity.log
*.iml
.factorypath
.vscode
.flattened-pom.xml
.flattened-pom.xml
dependency-reduced-pom.xml
Loading