feat: support downloading goreleaser pro (#284)

This commit is contained in:
Carlos Alexandro Becker
2021-05-27 00:25:31 -03:00
committed by GitHub
parent a3b2f49e7c
commit 70eb4e573c
9 changed files with 140 additions and 47 deletions
+2 -1
View File
@@ -6,11 +6,12 @@ import {dirname} from 'path';
async function run(): Promise<void> {
try {
const distribution = core.getInput('distribution') || 'goreleaser';
const version = core.getInput('version') || 'latest';
const args = core.getInput('args');
const workdir = core.getInput('workdir') || '.';
const isInstallOnly = /^true$/i.test(core.getInput('install-only'));
const goreleaser = await installer.getGoReleaser(version);
const goreleaser = await installer.getGoReleaser(distribution, version);
core.info(`✅ GoReleaser installed successfully`);
if (isInstallOnly) {