diff --git a/.github/workflows/bat.yml b/.github/workflows/bat.yml index 49b5f36..18a3488 100644 --- a/.github/workflows/bat.yml +++ b/.github/workflows/bat.yml @@ -102,7 +102,7 @@ jobs: uses: ./ with: tasks: deploy - additional-build-options: -skip test + build-options: -skip test - name: Verify correct tasks appear in buildlog.txt run: | @@ -118,7 +118,7 @@ jobs: uses: ./ with: tasks: error deploy - additional-build-options: -continueOnFailure + build-options: -continueOnFailure - name: Verify correct tasks appear in buildlog.txt run: | diff --git a/action.yml b/action.yml index 1b06535..b8252c3 100644 --- a/action.yml +++ b/action.yml @@ -9,9 +9,9 @@ inputs: Space-separated list of tasks to run required: false default: "" - additional-build-options: + build-options: description: >- - Additional build options for MATLAB build tool + Build options for MATLAB build tool required: false default: "" startup-options: diff --git a/src/buildtool.ts b/src/buildtool.ts index d9f00f8..050140e 100644 --- a/src/buildtool.ts +++ b/src/buildtool.ts @@ -2,7 +2,7 @@ export interface RunBuildOptions { Tasks?: string; - AdditionalBuildOptions?: string; + BuildOptions?: string; } export function generateCommand(options: RunBuildOptions): string { @@ -10,8 +10,8 @@ export function generateCommand(options: RunBuildOptions): string { if (options.Tasks) { command = command + " " + options.Tasks; } - if (options.AdditionalBuildOptions) { - command = command + " " + options.AdditionalBuildOptions + " -ignoreUnknownOptions"; + if (options.BuildOptions) { + command = command + " " + options.BuildOptions + " -ignoreUnknownOptions"; } return command; diff --git a/src/buildtool.unit.test.ts b/src/buildtool.unit.test.ts index 49b2c1e..2d5dd6a 100644 --- a/src/buildtool.unit.test.ts +++ b/src/buildtool.unit.test.ts @@ -6,7 +6,7 @@ describe("command generation", () => { it("buildtool invocation with unspecified tasks and build options", () => { const options: buildtool.RunBuildOptions = { Tasks: "", - AdditionalBuildOptions: "", + BuildOptions: "", }; const actual = buildtool.generateCommand(options); @@ -25,7 +25,7 @@ describe("command generation", () => { it("buildtool invocation with only build options", () => { const options: buildtool.RunBuildOptions = { Tasks: "", - AdditionalBuildOptions: "-continueOnFailure -skip check", + BuildOptions: "-continueOnFailure -skip check", }; const actual = buildtool.generateCommand(options); @@ -35,7 +35,7 @@ describe("command generation", () => { it("buildtool invocation with specified tasks and build options", () => { const options: buildtool.RunBuildOptions = { Tasks: "compile test", - AdditionalBuildOptions: "-continueOnFailure -skip check", + BuildOptions: "-continueOnFailure -skip check", }; const actual = buildtool.generateCommand(options); diff --git a/src/index.ts b/src/index.ts index ed6719e..6c24f07 100644 --- a/src/index.ts +++ b/src/index.ts @@ -15,7 +15,7 @@ async function run() { const options: buildtool.RunBuildOptions = { Tasks: core.getInput("tasks"), - AdditionalBuildOptions: core.getInput("additional-build-options"), + BuildOptions: core.getInput("build-options"), }; const command = buildtool.generateCommand(options);