Add node modules and new code for release (#57)

Co-authored-by: taakleton <taakleton@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2022-01-26 17:16:26 -05:00
committed by GitHub
parent da63a48ad7
commit a517f2ff65
8435 changed files with 1764387 additions and 7 deletions

View File

@ -114,7 +114,7 @@ exports.downloadHelm = downloadHelm;
function findHelm(rootFolder) {
fs.chmodSync(rootFolder, '777');
var filelist = [];
exports.walkSync(rootFolder, filelist, helmToolName + getExecutableExtension());
(0, exports.walkSync)(rootFolder, filelist, helmToolName + getExecutableExtension());
if (!filelist || filelist.length == 0) {
throw new Error(util.format("Helm executable not found in path", rootFolder));
}
@ -123,12 +123,12 @@ function findHelm(rootFolder) {
}
}
exports.findHelm = findHelm;
exports.walkSync = function (dir, filelist, fileToFind) {
var walkSync = function (dir, filelist, fileToFind) {
var files = fs.readdirSync(dir);
filelist = filelist || [];
files.forEach(function (file) {
if (fs.statSync(path.join(dir, file)).isDirectory()) {
filelist = exports.walkSync(path.join(dir, file), filelist, fileToFind);
filelist = (0, exports.walkSync)(path.join(dir, file), filelist, fileToFind);
}
else {
core.debug(file);
@ -139,4 +139,5 @@ exports.walkSync = function (dir, filelist, fileToFind) {
});
return filelist;
};
exports.walkSync = walkSync;
run().catch(core.setFailed);