Skip to content

Commit

Permalink
adding parent workflow name to output
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamkrishnar committed May 17, 2024
1 parent beb8621 commit 1f95a32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1f95a32

Please sign in to comment.