More CI improvements

This commit is contained in:
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 2022-07-29 21:10:46 +02:00
parent d83abae451
commit bcded223a6
No known key found for this signature in database
GPG key ID: BC5E2BD907F9A8EC
41 changed files with 359 additions and 120 deletions

View file

@ -97,8 +97,10 @@ function filterChangedCharts(files, parentFolder) {
let changedCharts = [];
filteredChartFiles.forEach((file) => {
const absoluteParentFolder = path.resolve(parentFolder);
const absoluteChartFolder = path.resolve(path.dirname(file));
const chart = absoluteChartFolder.slice(absoluteParentFolder.length + 1);
const absoluteFileDirname = path.resolve(path.dirname(file));
const relativeFileDirname = absoluteFileDirname.slice(absoluteParentFolder.length + 1);
const chartPathParts = relativeFileDirname.split("/");
const chart = `${chartPathParts[0]}/${chartPathParts[1]}`;
changedCharts.push(chart);
});
// Return only unique items