diff --git a/action.yml b/action.yml index acb2397..76687db 100644 --- a/action.yml +++ b/action.yml @@ -10,11 +10,14 @@ inputs: version: description: 'GoReleaser version. Example: v0.118.0' default: 'latest' + required: false args: description: 'Arguments to pass to GoReleaser' + required: true workdir: description: 'Working directory (below repository root)' default: '.' + required: false runs: using: 'node12' diff --git a/dist/index.js b/dist/index.js index ac9f76c..65e831f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1285,7 +1285,7 @@ function run() { return __awaiter(this, void 0, void 0, function* () { try { const version = core.getInput('version') || 'latest'; - const args = core.getInput('args'); + const args = core.getInput('args', { required: true }); const workdir = core.getInput('workdir') || '.'; const goreleaser = yield installer.getGoReleaser(version); const commit = yield git.getShortCommit(); diff --git a/src/main.ts b/src/main.ts index fb86d15..f23129a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -6,7 +6,7 @@ import * as exec from '@actions/exec'; async function run(): Promise { try { const version = core.getInput('version') || 'latest'; - const args = core.getInput('args'); + const args = core.getInput('args', {required: true}); const workdir = core.getInput('workdir') || '.'; const goreleaser = await installer.getGoReleaser(version);