mirror of
https://git.mirrors.martin98.com/https://github.com/cyberman54/curl
synced 2025-11-18 17:31:05 +08:00
23 lines
831 B
JavaScript
23 lines
831 B
JavaScript
"use strict";
|
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
if (mod && mod.__esModule) return mod;
|
|
var result = {};
|
|
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
result["default"] = mod;
|
|
return result;
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
var core = __importStar(require("@actions/core"));
|
|
var util = __importStar(require("./util"));
|
|
var setOutput = function (res) {
|
|
if (!res) {
|
|
throw new Error('No response from request');
|
|
}
|
|
util.validateStatusCode(res.status.toString());
|
|
if (core.getInput('is_debug') === 'true') {
|
|
core.info(util.buildOutput(res));
|
|
}
|
|
core.setOutput('response', util.buildOutput(res));
|
|
};
|
|
exports.default = setOutput;
|
|
//# sourceMappingURL=output.js.map
|