Skip to content

Commit

Permalink
Mark args input as required
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyMax committed May 10, 2020
1 parent 65ffe9d commit bfee8df
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit bfee8df

Please sign in to comment.