Skip to content

Commit 7d3ac05

Browse files
authored
Fix release branch builds (#13318)
1 parent c8ce712 commit 7d3ac05

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/build-common.yml

+2
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ jobs:
191191
run: ./gradlew check spdxSbom -x javadoc -x spotlessCheck -PskipTests=true ${{ inputs.no-build-cache && '--no-build-cache' || '' }}
192192

193193
- name: Check for jApiCmp diffs
194+
# The jApiCmp diff compares current to latest, which isn't appropriate for release branches
195+
if: ${{ !startsWith(github.ref_name, 'release/') && !startsWith(github.base_ref, 'release/') }}
194196
run: |
195197
# need to "git add" in case any generated files did not already exist
196198
git add docs/apidiffs

0 commit comments

Comments
 (0)