Allow passing the workflow via an environment variable
This commit is contained in:
parent
98f7bbd610
commit
599f4927f2
12 changed files with 87 additions and 45 deletions
2
lib/actions-util.js
generated
2
lib/actions-util.js
generated
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue