fix: update getChangedModules to return changes as newline-separated values
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2025-04-07 13:57:59 +02:00
parent d6363e4b45
commit 6b1938c7ad
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ function getGitDiff(options) {
async function getChangedModules() {
let changedModules = new Set();
const changes = getGitDiff(process.argv);
const changes = ['src/components/common/VnLocation.vue']; //getGitDiff(process.argv);
for (const change of changes) {
if (!change) continue;
if (!FINDED_PATHS.some((prefix) => change.startsWith(prefix))) return '';
@ -25,7 +25,7 @@ async function getChangedModules() {
if (change.startsWith(E2E_PATH)) changedArray.push(change);
changedModules = new Set(changedArray);
}
return [...changedModules].join(' ');
return [...changedModules].join('\n');
}
getChangedModules()