From 53ac1ee46201a52fbee1c1cda15290f650b3669c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Gonz=C3=A1lez?= Date: Mon, 22 Jan 2024 15:45:12 +0100 Subject: [PATCH] Update action.js --- action.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.js b/action.js index ff13064..9c17636 100644 --- a/action.js +++ b/action.js @@ -269,7 +269,7 @@ async function createTask(client, name, description, projectId) { } async function createTaskInSection(client, name, description, projectId, sectionId) { - console.log('creating new task in section', name); + console.log('creating new task in section', sectionId); let createdTaskId = "0" try { await client.tasks.createTask({name: name, @@ -280,7 +280,7 @@ async function createTaskInSection(client, name, description, projectId, section .then((result) => { createdTaskId = result.gid console.log('task created in section', createdTaskId); - core.setOutput('taskId', existingTaskId) + core.setOutput('taskId', createdTaskId) core.setOutput('duplicate', false) }) } catch (error) {