Mark args input as required
This commit is contained in:
parent
65ffe9d1d5
commit
bfee8df61e
|
@ -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'
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -6,7 +6,7 @@ import * as exec from '@actions/exec';
|
|||
async function run(): Promise<void> {
|
||||
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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue