Skip to content

Commit e89bb79

Browse files
authored
fix(scripts): run all clients on main (#3260)
1 parent 49af835 commit e89bb79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/ci/githubActions/createMatrix.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ const EMPTY_MATRIX = { client: ['no-run'] };
1313

1414
async function createClientMatrix(baseBranch: string): Promise<void> {
1515
const matrix: Record<string, ToRunMatrix> = {};
16+
// PRs have origin/* as a baseBranch, main is always running from a specific commit
1617
const commonDependenciesChanged =
17-
baseBranch === 'main' || (await isBaseChanged(baseBranch, COMMON_DEPENDENCIES));
18+
!baseBranch.startsWith('origin/') || (await isBaseChanged(baseBranch, COMMON_DEPENDENCIES));
1819

1920
// iterate over every generators to see what changed
2021
for (const { language, client, output } of Object.values(GENERATORS)) {

0 commit comments

Comments
 (0)