Allow passing the workflow via an environment variable

This commit is contained in:
Henry Mercer 2023-04-11 18:25:14 +01:00
parent 98f7bbd610
commit 599f4927f2
12 changed files with 87 additions and 45 deletions

2
lib/actions-util.js generated
View file

@ -163,7 +163,7 @@ async function getAnalysisKey() {
if (analysisKey !== undefined) {
return analysisKey;
}
const workflowPath = await (0, workflow_1.getWorkflowPath)();
const workflowPath = await (0, workflow_1.getWorkflowRelativePath)();
const jobName = (0, util_1.getRequiredEnvParam)("GITHUB_JOB");
analysisKey = `${workflowPath}:${jobName}`;
core.exportVariable(analysisKeyEnvVar, analysisKey);