Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dist/ciff/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
setuptools==49.2.0
wheel==0.34.2
PyGithub==1.51
setuptools==49.6.0
wheel==0.35.1
PyGithub==1.53
38 changes: 38 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3478,6 +3478,7 @@ class HTTPError extends Error {
}
exports.HTTPError = HTTPError;
const IS_WINDOWS = process.platform === 'win32';
const IS_MAC = process.platform === 'darwin';
const userAgent = 'actions/tool-cache';
/**
* Download a tool from an url and stream it into a file
Expand Down Expand Up @@ -3693,6 +3694,36 @@ function extractTar(file, dest, flags = 'xz') {
});
}
exports.extractTar = extractTar;
/**
* Extract a xar compatible archive
*
* @param file path to the archive
* @param dest destination directory. Optional.
* @param flags flags for the xar. Optional.
* @returns path to the destination directory
*/
function extractXar(file, dest, flags = []) {
return __awaiter(this, void 0, void 0, function* () {
assert_1.ok(IS_MAC, 'extractXar() not supported on current OS');
assert_1.ok(file, 'parameter "file" is required');
dest = yield _createExtractFolder(dest);
let args;
if (flags instanceof Array) {
args = flags;
}
else {
args = [flags];
}
args.push('-x', '-C', dest, '-f', file);
if (core.isDebug()) {
args.push('-v');
}
const xarPath = yield io.which('xar', true);
yield exec_1.exec(`"${xarPath}"`, _unique(args));
return dest;
});
}
exports.extractXar = extractXar;
/**
* Extract a zip
*
Expand Down Expand Up @@ -4001,6 +4032,13 @@ function _getGlobal(key, defaultValue) {
/* eslint-enable @typescript-eslint/no-explicit-any */
return value !== undefined ? value : defaultValue;
}
/**
* Returns an array of unique values.
* @param values Values to make unique.
*/
function _unique(values) {
return Array.from(new Set(values));
}
//# sourceMappingURL=tool-cache.js.map

/***/ }),
Expand Down
Binary file removed dist/vendor/PyGithub-1.51.tar.gz
Binary file not shown.
Binary file added dist/vendor/PyGithub-1.53.tar.gz
Binary file not shown.
Binary file not shown.
Binary file removed dist/vendor/wheel-0.34.2.tar.gz
Binary file not shown.
Binary file added dist/vendor/wheel-0.35.1.tar.gz
Binary file not shown.