Merge pull request #5100 from adriadam10/ci/dispatch-gate-matrices

ci(build): run relinker and context matrices on dispatch only when touched
This commit is contained in:
Adrià 2026-10-13 13:42:58 +02:00 committed by GitHub
commit 99e4dfefe7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ jobs:
}
const files = await github.paginate(github.rest.pulls.listFiles, { owner, repo, pull_number, per_page: 100 });
const paths = files.flatMap((file) => [file.filename, file.previous_filename].filter(Boolean));
const touches = (...prefixes) => manual || files.length >= 3000 ||
const touches = (...prefixes) => files.length >= 3000 ||
paths.some((path) => prefixes.some((prefix) => prefix.endsWith('/') ? path.startsWith(prefix) : path === prefix));
const workflow = '.github/workflows/build.yml';
const libc = 'core/libs/prx/libc/';