Skip to content

Commit 9d374aa

Browse files
committed
fix: only check for bc on main target
1 parent 4d9e0fa commit 9d374aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ jobs:
351351
run: yarn cli build playground ${{ matrix.client.language }}
352352

353353
- name: Run Java 'algoliasearch' public API validation
354-
if: ${{ matrix.client.language == 'java' && matrix.client.isMainVersion && !contains(format('{0} {1}', github.event.pull_request.title, github.event.head_commit.message), '[skip-bc]') }}
354+
if: ${{ github.base_ref == 'main' && matrix.client.language == 'java' && matrix.client.isMainVersion && !contains(format('{0} {1}', github.event.pull_request.title, github.event.head_commit.message), '[skip-bc]') }}
355355
run: |
356356
cd ${{ matrix.client.path }}
357357
exit_code=0

0 commit comments

Comments
 (0)