From db34e0ff80cb21f2e8b4de904452c377de4db2be Mon Sep 17 00:00:00 2001 From: Andriy Redko Date: Tue, 2 Apr 2024 11:41:16 -0400 Subject: [PATCH] Fix detect-breaking-change Github action configuration Signed-off-by: Andriy Redko --- .github/workflows/detect-breaking-change.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/detect-breaking-change.yml b/.github/workflows/detect-breaking-change.yml index fec605c58f9c7..63806566f840f 100644 --- a/.github/workflows/detect-breaking-change.yml +++ b/.github/workflows/detect-breaking-change.yml @@ -1,5 +1,11 @@ name: "Detect Breaking Changes" -on: [push, pull_request] +on: + pull_request: + push: + branches: + - main + - '[0-9]+.[0-9]+' + - '[0-9]+.x' jobs: detect-breaking-change: runs-on: ubuntu-latest @@ -11,7 +17,7 @@ jobs: java-version: 21 - uses: gradle/gradle-build-action@v3 with: - arguments: japicmp + arguments: japicmp --no-build-cache --no-configuration-cache gradle-version: 8.7 build-root-directory: server - if: failure()