From de656c90a66b717757b5fd103ed2a08ff6c16a3b Mon Sep 17 00:00:00 2001 From: Giao Ho Date: Sat, 20 Jan 2024 17:03:01 +0700 Subject: [PATCH] Rebuild --- action/index.js | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/action/index.js b/action/index.js index a0418e3..d36cb18 100644 --- a/action/index.js +++ b/action/index.js @@ -120702,13 +120702,11 @@ const io_helper_1 = __nccwpck_require__(3262); yield Promise.all(artifactsToDelete.map((value) => __awaiter(this, void 0, void 0, function* () { try { yield artifact_1.default.deleteArtifact(value.name, findOptions); - core.info(`Artifact ${value.name} was deleted`); result.artifacts[value.name] = Object.assign(Object.assign({}, value), { status: 'success' }); result.deleted.count++; result.deleted.names.push(value.name); } catch (e) { - core.info(`Deleting artifact ${value.name} failed`); result.artifacts[value.name] = Object.assign(Object.assign({}, value), { status: 'fail' }); result.failed.count++; result.failed.names.push(value.name); @@ -120758,7 +120756,6 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setOutputs = exports.getInputs = exports.getBooleanInput = exports.isNotBlank = exports.DeleteInputs = void 0; const core = __importStar(__nccwpck_require__(2186)); const constants_1 = __nccwpck_require__(9042); -const github_1 = __nccwpck_require__(5438); class DeleteInputs { constructor(artifactNames = []) { this.artifactNames = artifactNames; @@ -120766,38 +120763,6 @@ class DeleteInputs { get deleteAll() { return this.artifactNames == null || this.artifactNames.length === 0; } - get findOptions() { - var _a, _b; - const options = {}; - if (isNotBlank(this.runId) && isNotBlank(this.token)) { - options.findBy = { - token: this.token, - repositoryOwner: (_a = this.owner) !== null && _a !== void 0 ? _a : github_1.context.repo.owner, - repositoryName: (_b = this.repo) !== null && _b !== void 0 ? _b : github_1.context.repo.repo, - workflowRunId: this.runId - }; - } - if (this.latest != null) { - options.latest = this.latest; - } - return options; - } - get listOptions() { - var _a, _b; - const options = {}; - if (isNotBlank(this.runId) && isNotBlank(this.token)) { - options.findBy = { - token: this.token, - repositoryOwner: (_a = this.owner) !== null && _a !== void 0 ? _a : github_1.context.repo.owner, - repositoryName: (_b = this.repo) !== null && _b !== void 0 ? _b : github_1.context.repo.repo, - workflowRunId: this.runId - }; - } - if (this.latest != null) { - options.latest = this.latest; - } - return options; - } } exports.DeleteInputs = DeleteInputs; function isNotBlank(value) {