mirror of
https://github.com/goreleaser/goreleaser-action.git
synced 2026-05-15 23:20:32 +00:00
* fix: don't depend on the GitHub API to check release * chore: update generated content --------- Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
23 lines
604 B
TypeScript
23 lines
604 B
TypeScript
import * as os from 'os';
|
|
import * as core from '@actions/core';
|
|
|
|
export const osPlat: string = os.platform();
|
|
export const osArch: string = os.arch();
|
|
|
|
export interface Inputs {
|
|
distribution: string;
|
|
version: string;
|
|
args: string;
|
|
workdir: string;
|
|
installOnly: boolean;
|
|
}
|
|
|
|
export async function getInputs(): Promise<Inputs> {
|
|
return {
|
|
distribution: core.getInput('distribution') || 'goreleaser',
|
|
version: core.getInput('version') || 'latest',
|
|
args: core.getInput('args'),
|
|
workdir: core.getInput('workdir') || '.',
|
|
installOnly: core.getBooleanInput('install-only')
|
|
};
|
|
}
|