Skip to content

Commit 4ba5740

Browse files
committed
Update dependency
1 parent 3b54454 commit 4ba5740

File tree

6 files changed

+44
-47
lines changed

6 files changed

+44
-47
lines changed

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ body:
1818
description: "What versions are affected? Versions must be listed as supported in the Security Policy (file: `SECURITY.md`)."
1919
multiple: true
2020
options:
21+
- "v1.2.1"
2122
- "v1.2.0"
2223
- "v1.1.1"
2324
validations:

hugoalh.GitHubActionsToolkit/hugoalh.GitHubActionsToolkit.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
RootModule = 'hugoalh.GitHubActionsToolkit.psm1'
44

55
# Version number of this module.
6-
ModuleVersion = '1.2.0'
6+
ModuleVersion = '1.2.1'
77

88
# Supported PSEditions
99
# CompatiblePSEditions = @()

hugoalh.GitHubActionsToolkit/module/nodejs-wrapper/dist/main.js

Lines changed: 31 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2179,7 +2179,7 @@ exports.digestForStream = digestForStream;
21792179

21802180
/***/ }),
21812181

2182-
/***/ 5185:
2182+
/***/ 4609:
21832183
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
21842184

21852185

@@ -2202,9 +2202,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
22022202
Object.defineProperty(exports, "__esModule", ({ value: true }));
22032203
const core = __importStar(__nccwpck_require__(7733));
22042204
const path = __importStar(__nccwpck_require__(1017));
2205-
const utils = __importStar(__nccwpck_require__(2018));
2206-
const cacheHttpClient = __importStar(__nccwpck_require__(123));
2207-
const tar_1 = __nccwpck_require__(7364);
2205+
const utils = __importStar(__nccwpck_require__(2707));
2206+
const cacheHttpClient = __importStar(__nccwpck_require__(1598));
2207+
const tar_1 = __nccwpck_require__(973);
22082208
class ValidationError extends Error {
22092209
constructor(message) {
22102210
super(message);
@@ -2399,7 +2399,7 @@ exports.saveCache = saveCache;
23992399

24002400
/***/ }),
24012401

2402-
/***/ 123:
2402+
/***/ 1598:
24032403
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
24042404

24052405

@@ -2426,10 +2426,10 @@ const auth_1 = __nccwpck_require__(6931);
24262426
const crypto = __importStar(__nccwpck_require__(6113));
24272427
const fs = __importStar(__nccwpck_require__(7147));
24282428
const url_1 = __nccwpck_require__(7310);
2429-
const utils = __importStar(__nccwpck_require__(2018));
2430-
const downloadUtils_1 = __nccwpck_require__(5634);
2431-
const options_1 = __nccwpck_require__(7855);
2432-
const requestUtils_1 = __nccwpck_require__(7738);
2429+
const utils = __importStar(__nccwpck_require__(2707));
2430+
const downloadUtils_1 = __nccwpck_require__(6898);
2431+
const options_1 = __nccwpck_require__(4090);
2432+
const requestUtils_1 = __nccwpck_require__(8536);
24332433
const versionSalt = '1.0';
24342434
function getCacheApiUrl(resource) {
24352435
const baseUrl = process.env['ACTIONS_CACHE_URL'] || '';
@@ -2646,7 +2646,7 @@ exports.saveCache = saveCache;
26462646

26472647
/***/ }),
26482648

2649-
/***/ 2018:
2649+
/***/ 2707:
26502650
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
26512651

26522652

@@ -2683,7 +2683,7 @@ const path = __importStar(__nccwpck_require__(1017));
26832683
const semver = __importStar(__nccwpck_require__(3496));
26842684
const util = __importStar(__nccwpck_require__(3837));
26852685
const uuid_1 = __nccwpck_require__(1090);
2686-
const constants_1 = __nccwpck_require__(7810);
2686+
const constants_1 = __nccwpck_require__(2114);
26872687
// From https://github.com/actions/toolkit/blob/main/packages/tool-cache/src/tool-cache.ts#L23
26882688
function createTempDirectory() {
26892689
return __awaiter(this, void 0, void 0, function* () {
@@ -2758,12 +2758,13 @@ function unlinkFile(filePath) {
27582758
});
27592759
}
27602760
exports.unlinkFile = unlinkFile;
2761-
function getVersion(app) {
2761+
function getVersion(app, additionalArgs = []) {
27622762
return __awaiter(this, void 0, void 0, function* () {
2763-
core.debug(`Checking ${app} --version`);
27642763
let versionOutput = '';
2764+
additionalArgs.push('--version');
2765+
core.debug(`Checking ${app} ${additionalArgs.join(' ')}`);
27652766
try {
2766-
yield exec.exec(`${app} --version`, [], {
2767+
yield exec.exec(`${app}`, additionalArgs, {
27672768
ignoreReturnCode: true,
27682769
silent: true,
27692770
listeners: {
@@ -2783,19 +2784,14 @@ function getVersion(app) {
27832784
// Use zstandard if possible to maximize cache performance
27842785
function getCompressionMethod() {
27852786
return __awaiter(this, void 0, void 0, function* () {
2786-
const versionOutput = yield getVersion('zstd');
2787+
const versionOutput = yield getVersion('zstd', ['--quiet']);
27872788
const version = semver.clean(versionOutput);
2788-
if (!versionOutput.toLowerCase().includes('zstd command line interface')) {
2789-
// zstd is not installed
2789+
core.debug(`zstd version: ${version}`);
2790+
if (versionOutput === '') {
27902791
return constants_1.CompressionMethod.Gzip;
27912792
}
2792-
else if (!version || semver.lt(version, 'v1.3.2')) {
2793-
// zstd is installed but using a version earlier than v1.3.2
2794-
// v1.3.2 is required to use the `--long` options in zstd
2795-
return constants_1.CompressionMethod.ZstdWithoutLong;
2796-
}
27972793
else {
2798-
return constants_1.CompressionMethod.Zstd;
2794+
return constants_1.CompressionMethod.ZstdWithoutLong;
27992795
}
28002796
});
28012797
}
@@ -2832,7 +2828,7 @@ exports.isGhes = isGhes;
28322828

28332829
/***/ }),
28342830

2835-
/***/ 7810:
2831+
/***/ 2114:
28362832
/***/ ((__unused_webpack_module, exports) => {
28372833

28382834

@@ -2873,7 +2869,7 @@ exports.ManifestFilename = 'manifest.txt';
28732869

28742870
/***/ }),
28752871

2876-
/***/ 5634:
2872+
/***/ 6898:
28772873
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
28782874

28792875

@@ -2901,9 +2897,9 @@ const buffer = __importStar(__nccwpck_require__(4300));
29012897
const fs = __importStar(__nccwpck_require__(7147));
29022898
const stream = __importStar(__nccwpck_require__(2781));
29032899
const util = __importStar(__nccwpck_require__(3837));
2904-
const utils = __importStar(__nccwpck_require__(2018));
2905-
const constants_1 = __nccwpck_require__(7810);
2906-
const requestUtils_1 = __nccwpck_require__(7738);
2900+
const utils = __importStar(__nccwpck_require__(2707));
2901+
const constants_1 = __nccwpck_require__(2114);
2902+
const requestUtils_1 = __nccwpck_require__(8536);
29072903
const abort_controller_1 = __nccwpck_require__(4992);
29082904
/**
29092905
* Pipes the body of a HTTP response to a stream
@@ -3130,7 +3126,7 @@ const promiseWithTimeout = (timeoutMs, promise) => __awaiter(void 0, void 0, voi
31303126

31313127
/***/ }),
31323128

3133-
/***/ 7738:
3129+
/***/ 8536:
31343130
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
31353131

31363132

@@ -3153,7 +3149,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
31533149
Object.defineProperty(exports, "__esModule", ({ value: true }));
31543150
const core = __importStar(__nccwpck_require__(7733));
31553151
const http_client_1 = __nccwpck_require__(3569);
3156-
const constants_1 = __nccwpck_require__(7810);
3152+
const constants_1 = __nccwpck_require__(2114);
31573153
function isSuccessStatusCode(statusCode) {
31583154
if (!statusCode) {
31593155
return false;
@@ -3256,7 +3252,7 @@ exports.retryHttpClientResponse = retryHttpClientResponse;
32563252

32573253
/***/ }),
32583254

3259-
/***/ 7364:
3255+
/***/ 973:
32603256
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
32613257

32623258

@@ -3281,8 +3277,8 @@ const exec_1 = __nccwpck_require__(1757);
32813277
const io = __importStar(__nccwpck_require__(1318));
32823278
const fs_1 = __nccwpck_require__(7147);
32833279
const path = __importStar(__nccwpck_require__(1017));
3284-
const utils = __importStar(__nccwpck_require__(2018));
3285-
const constants_1 = __nccwpck_require__(7810);
3280+
const utils = __importStar(__nccwpck_require__(2707));
3281+
const constants_1 = __nccwpck_require__(2114);
32863282
const IS_WINDOWS = process.platform === 'win32';
32873283
// Returns tar path and type: BSD or GNU
32883284
function getTarPath() {
@@ -3517,7 +3513,7 @@ exports.createTar = createTar;
35173513

35183514
/***/ }),
35193515

3520-
/***/ 7855:
3516+
/***/ 4090:
35213517
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
35223518

35233519

@@ -68421,7 +68417,7 @@ __nccwpck_require__.a(__webpack_module__, async (__webpack_handle_async_dependen
6842168417
/* harmony import */ var _actions_tool_cache__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(514);
6842268418
/* harmony import */ var _actions_artifact__WEBPACK_IMPORTED_MODULE_1__ = __nccwpck_require__(5833);
6842368419
/* harmony import */ var _actions_core__WEBPACK_IMPORTED_MODULE_2__ = __nccwpck_require__(7733);
68424-
/* harmony import */ var _actions_cache__WEBPACK_IMPORTED_MODULE_3__ = __nccwpck_require__(5185);
68420+
/* harmony import */ var _actions_cache__WEBPACK_IMPORTED_MODULE_3__ = __nccwpck_require__(4609);
6842568421

6842668422

6842768423

hugoalh.GitHubActionsToolkit/module/nodejs-wrapper/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hugoalh/ghactions-toolkit-powershell-nodejs-wrapper-distribution",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "A PowerShell module to provide a better and easier way for GitHub Actions to communicate with the runner machine, and the toolkit for developing GitHub Actions in PowerShell.",
55
"keywords": [
66
"gh-actions",

nodejs-wrapper-source/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hugoalh/ghactions-toolkit-powershell-nodejs-wrapper-source",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "A PowerShell module to provide a better and easier way for GitHub Actions to communicate with the runner machine, and the toolkit for developing GitHub Actions in PowerShell.",
55
"keywords": [
66
"gh-actions",
@@ -29,7 +29,7 @@
2929
},
3030
"dependencies": {
3131
"@actions/artifact": "^1.1.1",
32-
"@actions/cache": "^3.1.3",
32+
"@actions/cache": "^3.1.4",
3333
"@actions/core": "^1.10.0",
3434
"@actions/tool-cache": "^2.0.1"
3535
},

nodejs-wrapper-source/pnpm-lock.yaml

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)