Initial commit

This commit is contained in:
CrazyMax 2021-05-30 07:51:20 +02:00
commit aecf5e3748
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
30 changed files with 9832 additions and 0 deletions

19
src/context.ts Normal file
View file

@ -0,0 +1,19 @@
import * as core from '@actions/core';
export interface Inputs {
version: string;
ageKey: string;
workdir: string;
args: string;
installOnly: boolean;
}
export async function getInputs(): Promise<Inputs> {
return {
version: core.getInput('version') || 'latest',
ageKey: core.getInput('age-key'),
workdir: core.getInput('workdir') || '.',
args: core.getInput('args'),
installOnly: core.getBooleanInput('install-only')
};
}