Mark args input as required

This commit is contained in:
CrazyMax 2020-05-10 16:19:42 +02:00
parent 65ffe9d1d5
commit bfee8df61e
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
3 changed files with 5 additions and 2 deletions

View File

@ -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'

2
dist/index.js generated vendored
View File

@ -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();

View File

@ -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);