Adding url to log

This commit is contained in:
Derek Kershner 2021-05-22 09:18:03 -07:00
parent 12cb7682a5
commit 49dfd9b470
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@ -33,7 +33,7 @@ function run() {
return __awaiter(this, void 0, void 0, function* () {
try {
const url = core_1.getInput('url');
core_1.info('Sending POST request...');
core_1.info(`Sending POST request to ${url}`);
const data = parseJsonSafely(core_1.getInput('data'));
const headers = parseJsonSafely(core_1.getInput('headers'));
yield axios_1.default.post(url, data, {

View File

@ -1,6 +1,6 @@
{
"name": "post-api-call-action",
"version": "1.0.0",
"version": "1.0.1",
"private": true,
"description": "Send a POST request action",
"main": "lib/main.js",

View File

@ -12,7 +12,7 @@ const parseJsonSafely = (jsonString: string): any => {
async function run(): Promise<void> {
try {
const url: string = getInput('url');
info('Sending POST request...');
info(`Sending POST request to ${url}`);
const data = parseJsonSafely(getInput('data'));
const headers = parseJsonSafely(getInput('headers'));
await axios.post(url, data, {