Skip to content

Commit 946d81b

Browse files
committed
update field name to generate-summary
1 parent 1c3a928 commit 946d81b

4 files changed

Lines changed: 16 additions & 11 deletions

File tree

.github/workflows/bat.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,11 @@ jobs:
230230
with:
231231
tasks: preMadeTest
232232

233+
- name: Run build with premade TestTask ran multiple times for test summary sanity
234+
uses: ./
235+
with:
236+
tasks: preMadeTest preMadeTest preMadeTest
237+
233238
- name: Run build with invalid task
234239
continue-on-error: true
235240
uses: ./

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ inputs:
1919
Startup options for MATLAB
2020
required: false
2121
default: ""
22-
generate-job-summary:
22+
generate-summary:
2323
description: >-
2424
Whether to generate a MATLAB-related job summary for the workflow run
2525
required: false

package-lock.json

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

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ async function run() {
2020

2121
const command = buildtool.generateCommand(options);
2222
const startupOptions = core.getInput("startup-options").split(" ");
23-
const generateJobSummary = core.getBooleanInput("generate-job-summary");
23+
const generateSummary = core.getBooleanInput("generate-summary");
2424

2525
const helperScript = await matlab.generateScript(workspaceDir, command);
2626
const execOptions = {
2727
env: {
2828
...process.env,
2929
MW_BATCH_LICENSING_ONLINE: "true", // Remove when online batch licensing is the default
3030
MW_MATLAB_BUILDTOOL_DEFAULT_PLUGINS_FCN_OVERRIDE: "buildframework.getDefaultPlugins",
31-
MW_GENERATE_JOB_SUMMARY: String(generateJobSummary),
31+
MW_GENERATE_SUMMARY: String(generateSummary),
3232
},
3333
};
3434

@@ -41,7 +41,7 @@ async function run() {
4141
startupOptions,
4242
)
4343
.finally(() => {
44-
if (generateJobSummary) {
44+
if (generateSummary) {
4545
const runnerTemp = process.env.RUNNER_TEMP || "";
4646
const runId = process.env.GITHUB_RUN_ID || "";
4747
const actionName = process.env.GITHUB_ACTION || "";

0 commit comments

Comments
 (0)