Further update to reflect a conversation with @henrymercer

This commit is contained in:
Edoardo Pirovano 2022-10-11 16:59:48 +01:00
parent 6e1dab28b6
commit adb28963c0
No known key found for this signature in database
GPG key ID: 047556B5D93FFE28
21 changed files with 131 additions and 79 deletions

View file

@ -81,7 +81,13 @@ function resolvePaths(patterns) {
.replace(new RegExp(`\\${path.sep}`, 'g'), '/');
core.debug(`Matched: ${relativeFile}`);
// Paths are made relative so the tar entries are all relative to the root of the workspace.
paths.push(`${relativeFile}`);
if (relativeFile === '') {
// path.relative returns empty string if workspace and file are equal
paths.push('.');
}
else {
paths.push(`${relativeFile}`);
}
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }