Skip to content

Commit f265661

Browse files
authored
Fix release branch builds (open-telemetry#13318) (open-telemetry#13711)
1 parent efb8880 commit f265661

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/build-common.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@ jobs:
198198
run: ./gradlew check spdxSbom -x javadoc -x spotlessCheck -PskipTests=true ${{ inputs.no-build-cache && '--no-build-cache' || '' }}
199199

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

0 commit comments

Comments
 (0)