Prepare for release

- Final cleanup
This commit is contained in:
Joel Male 2020-08-26 10:38:11 +10:00
parent db36b9f178
commit 5be5ae3f9a
9 changed files with 34 additions and 39 deletions

10
dist/index.js vendored
View File

@ -2131,7 +2131,6 @@ function run() {
return __awaiter(this, void 0, void 0, function () { return __awaiter(this, void 0, void 0, function () {
var url, headers, body; var url, headers, body;
return __generator(this, function (_c) { return __generator(this, function (_c) {
try {
url = core.getInput('url'); url = core.getInput('url');
headers = (_a = core.getInput('headers')) !== null && _a !== void 0 ? _a : ''; headers = (_a = core.getInput('headers')) !== null && _a !== void 0 ? _a : '';
body = (_b = core.getInput('body')) !== null && _b !== void 0 ? _b : ''; body = (_b = core.getInput('body')) !== null && _b !== void 0 ? _b : '';
@ -2141,12 +2140,11 @@ function run() {
.then(function (res) { .then(function (res) {
core.setOutput('statusCode', res.status); core.setOutput('statusCode', res.status);
core.info("Received status code: " + res.status); core.info("Received status code: " + res.status);
});
core.info((new Date()).toTimeString()); core.info((new Date()).toTimeString());
} })
catch (error) { .catch(function (err) {
core.setFailed(error.message); core.setFailed("Received status code: " + err.status);
} });
return [2]; return [2];
}); });
}); });

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

10
dist/main.js vendored
View File

@ -43,7 +43,6 @@ function run() {
return __awaiter(this, void 0, void 0, function () { return __awaiter(this, void 0, void 0, function () {
var url, headers, body; var url, headers, body;
return __generator(this, function (_c) { return __generator(this, function (_c) {
try {
url = core.getInput('url'); url = core.getInput('url');
headers = (_a = core.getInput('headers')) !== null && _a !== void 0 ? _a : ''; headers = (_a = core.getInput('headers')) !== null && _a !== void 0 ? _a : '';
body = (_b = core.getInput('body')) !== null && _b !== void 0 ? _b : ''; body = (_b = core.getInput('body')) !== null && _b !== void 0 ? _b : '';
@ -53,12 +52,11 @@ function run() {
.then(function (res) { .then(function (res) {
core.setOutput('statusCode', res.status); core.setOutput('statusCode', res.status);
core.info("Received status code: " + res.status); core.info("Received status code: " + res.status);
});
core.info((new Date()).toTimeString()); core.info((new Date()).toTimeString());
} })
catch (error) { .catch(function (err) {
core.setFailed(error.message); core.setFailed("Received status code: " + err.status);
} });
return [2]; return [2];
}); });
}); });

2
dist/main.js.map vendored
View File

@ -1 +1 @@
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oCAAsC;AACtC,+BAA8B;AAE9B,SAAe,GAAG;;;;;YAChB,IAAI;gBACI,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;gBAC3B,OAAO,SAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,mCAAI,EAAE,CAAC;gBACzC,IAAI,SAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,mCAAI,EAAE,CAAC;gBAGzC,IAAI,CAAC,IAAI,CAAC,gCAA8B,GAAK,CAAC,CAAC;gBAG/C,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,YAAY,EAAE,CAAC,CAAC;gBAGxC,WAAI,CAAC,IAAI,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,CAAC;qBAC1B,IAAI,CAAC,UAAC,GAAG;oBAER,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;oBAEzC,IAAI,CAAC,IAAI,CAAC,2BAAyB,GAAG,CAAC,MAAQ,CAAC,CAAC;gBACnD,CAAC,CAAC,CAAC;gBAGL,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,YAAY,EAAE,CAAC,CAAC;aACxC;YAAC,OAAO,KAAK,EAAE;gBACd,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;aAC/B;;;;CACF;AAED,GAAG,EAAE,CAAC"} {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oCAAsC;AACtC,+BAA8B;AAE9B,SAAe,GAAG;;;;;YACR,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;YAC3B,OAAO,SAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,mCAAI,EAAE,CAAC;YACzC,IAAI,SAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,mCAAI,EAAE,CAAC;YAGzC,IAAI,CAAC,IAAI,CAAC,gCAA8B,GAAK,CAAC,CAAC;YAG/C,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,YAAY,EAAE,CAAC,CAAC;YAGxC,WAAI,CAAC,IAAI,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,CAAC;iBAC1B,IAAI,CAAC,UAAC,GAAG;gBAER,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;gBAEzC,IAAI,CAAC,IAAI,CAAC,2BAAyB,GAAG,CAAC,MAAQ,CAAC,CAAC;gBAEjD,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,YAAY,EAAE,CAAC,CAAC;YACzC,CAAC,CAAC;iBACD,KAAK,CAAC,UAAC,GAAG;gBAET,IAAI,CAAC,SAAS,CAAC,2BAAyB,GAAG,CAAC,MAAQ,CAAC,CAAC;YACxD,CAAC,CAAC,CAAC;;;;CACR;AAED,GAAG,EAAE,CAAC"}

Binary file not shown.

Binary file not shown.

View File

@ -2,7 +2,6 @@ import * as core from '@actions/core';
import { http } from './http'; import { http } from './http';
async function run() { async function run() {
try {
const url = core.getInput('url'); const url = core.getInput('url');
const headers = core.getInput('headers') ?? ''; const headers = core.getInput('headers') ?? '';
const body = core.getInput('body') ?? ''; const body = core.getInput('body') ?? '';
@ -20,13 +19,13 @@ async function run() {
core.setOutput('statusCode', res.status); core.setOutput('statusCode', res.status);
// report on the status code // report on the status code
core.info(`Received status code: ${res.status}`); core.info(`Received status code: ${res.status}`);
});
// debug end // debug end
core.info((new Date()).toTimeString()); core.info((new Date()).toTimeString());
} catch (error) { })
core.setFailed(error.message); .catch((err) => {
} // set the action to failed
core.setFailed(`Received status code: ${err.status}`);
});
} }
run(); run();