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