mirror of
https://github.com/goreleaser/goreleaser-action
synced 2026-06-30 01:19:43 +00:00
Initial commit
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
import * as installer from './installer';
|
||||
import * as core from '@actions/core';
|
||||
import * as exec from '@actions/exec';
|
||||
|
||||
async function run() {
|
||||
try {
|
||||
const version = core.getInput('version') || 'latest';
|
||||
const args = core.getInput('args');
|
||||
const goreleaser = await installer.getGoReleaser(version);
|
||||
|
||||
console.log('🏃 Running GoReleaser...');
|
||||
await exec.exec(`${goreleaser} ${args}`);
|
||||
} catch (error) {
|
||||
core.setFailed(error.message);
|
||||
}
|
||||
}
|
||||
|
||||
run();
|
||||
Reference in New Issue
Block a user