fix: update getChangedModules to return changes as newline-separated values
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
d6363e4b45
commit
6b1938c7ad
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue