Skip to content

Commit

Permalink
Support yml and yaml by matching before @ (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderOMara authored May 18, 2024
1 parent a9ac5ca commit 10f14a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if (useAPI) {
const promiseArr = []
workflowsList.forEach((workflowFile) => {
promiseArr.push(new Promise(async (resolve, reject) => {
const parentWorkflowPath = process.env.GITHUB_WORKFLOW_REF.match(/^(.*\.yml)/)[1];
const parentWorkflowPath = process.env.GITHUB_WORKFLOW_REF.match(/^(.*)@/)[1];
core.info(`Executing keepalive for ${workflowFile ? workflowFile : `parent workflow (${parentWorkflowPath})`}`);
APIKeepAliveWorkflow(githubToken, {
autoWriteCheck,
Expand Down

0 comments on commit 10f14a9

Please sign in to comment.