diff --git a/.github/workflows/detect-breaking-change.yml b/.github/workflows/detect-breaking-change.yml index fec605c58f9c7..38968b72d1919 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,6 +17,7 @@ jobs: java-version: 21 - uses: gradle/gradle-build-action@v3 with: + cache-disabled: true arguments: japicmp gradle-version: 8.7 build-root-directory: server