Skip to content

Commit

Permalink
Rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
joutvhu committed Jan 20, 2024
1 parent 0331c59 commit de656c9
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions action/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -120758,46 +120756,13 @@ 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;
}
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) {
Expand Down

0 comments on commit de656c9

Please sign in to comment.