This is an automated email from the ASF dual-hosted git repository. janbednar pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push: new ffca122 CAMEL-15536: Fail Github Action if git tree is dirty (#4237) ffca122 is described below commit ffca122ce230f72b501663e43c6994ec03765cbc Author: Jan Bednar <m...@janbednar.eu> AuthorDate: Wed Sep 16 15:32:17 2020 +0200 CAMEL-15536: Fail Github Action if git tree is dirty (#4237) --- .github/workflows/master-pr-build.yml | 6 ++++++ .github/workflows/master-push-build.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/master-pr-build.yml b/.github/workflows/master-pr-build.yml index 212e488..e256b66 100644 --- a/.github/workflows/master-pr-build.yml +++ b/.github/workflows/master-pr-build.yml @@ -41,3 +41,9 @@ jobs: restore-keys: ${{ runner.os }}-m2 - name: mvn sourcecheck run: ./mvnw -V --no-transfer-progress -Psourcecheck -Dcheckstyle.failOnViolation=true -DskipTests checkstyle:checkstyle verify + - name: Check if there are uncommited changes + id: changes + uses: UnicornGlobal/has-changes-action@v1.0.11 + - name: Fail if git tree is dirty + if: steps.changes.outputs.changed == 1 + run: echo "Maven build will override some files, which are not commited as part of this PR. Please run maven build and commit generated sources." && exit 1 diff --git a/.github/workflows/master-push-build.yml b/.github/workflows/master-push-build.yml index 10eeba0..79671b7 100644 --- a/.github/workflows/master-push-build.yml +++ b/.github/workflows/master-push-build.yml @@ -41,3 +41,9 @@ jobs: restore-keys: ${{ runner.os }}-m2 - name: mvn sourcecheck run: ./mvnw -V --no-transfer-progress -Psourcecheck -Dcheckstyle.failOnViolation=true -DskipTests checkstyle:checkstyle verify + - name: Check if there are uncommited changes + id: changes + uses: UnicornGlobal/has-changes-action@v1.0.11 + - name: Fail if git tree is dirty + if: steps.changes.outputs.changed == 1 + run: echo "Maven build will override some files, which are not commited yet. Please run maven build and commit generated sources." && exit 1