Skip to content

Commit c776039

Browse files
committed
add actionName to file name
1 parent e025e14 commit c776039

4 files changed

Lines changed: 9 additions & 5 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
## For development environment
22
.vscode
33

4+
# Claude
5+
.claude/
6+
47
# Don't include intermediate TypeScript compilation;
58
# it should be forcibly added on release
69
lib

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"dependencies": {
2323
"@actions/core": "^3.0.0",
2424
"@actions/exec": "^3.0.0",
25-
"common-utils": "github:matlab-actions/common-utils#v2.2.2"
25+
"common-utils": "github:matlab-actions/common-utils#kapilg/opt-out"
2626
},
2727
"devDependencies": {
2828
"@types/jest": "^30.0.0",

src/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ async function run() {
5555
INPUT_SOURCE_FOLDER: options.SourceFolder!, // Add source folder to environment
5656
INPUT_CODE_COVERAGE_HTML: options.HTMLCodeCoverage!,
5757
INPUT_CODE_COVERAGE_COBERTURA: options.CoberturaCodeCoverage!,
58+
MW_GENERATE_JOB_SUMMARY: String(generateJobSummary),
5859
},
5960
};
6061
core.info("Successfully generated test script!");
@@ -71,9 +72,9 @@ async function run() {
7172
if (generateJobSummary) {
7273
const runnerTemp = process.env.RUNNER_TEMP || "";
7374
const runId = process.env.GITHUB_RUN_ID || "";
75+
const actionName = process.env.GITHUB_ACTION || "";
7476

75-
// Generate test results and code coverage view
76-
testResultsSummary.processAndAddTestSummary(runnerTemp, runId, workspaceDir);
77+
testResultsSummary.processAndAddTestSummary(runnerTemp, runId, actionName, workspaceDir);
7778
core.summary.write();
7879
}
7980
});

0 commit comments

Comments
 (0)