From 1f95a32dcaf39228adc536589434d8992001fb9f Mon Sep 17 00:00:00 2001 From: Gautam Krishna R Date: Sat, 18 May 2024 02:44:19 +0530 Subject: [PATCH] adding parent workflow name to output --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 16026a0..df04f77 100644 --- a/index.js +++ b/index.js @@ -20,6 +20,8 @@ if (useAPI) { const promiseArr = [] workflowsList.forEach((workflowFile) => { promiseArr.push(new Promise(async (resolve, reject) => { + const parentWorkflowPath = process.env.GITHUB_WORKFLOW_REF.match(/^(.*\.yml)/)[1]; + core.info(`Executing keepalive for ${workflowFile ? workflowFile : `parent workflow (${parentWorkflowPath})`}`); core.info(`Executing keepalive for ${workflowFile ? workflowFile : 'parent workflow'}`); APIKeepAliveWorkflow(githubToken, { autoWriteCheck,