Add input to allow to cleanup Dagger home folder at the end of a job

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2021-05-31 10:18:33 +02:00
parent 559f0e73bf
commit 66fd1bdf2e
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
6 changed files with 95 additions and 4 deletions

View file

@ -6,6 +6,7 @@ export interface Inputs {
workdir: string;
args: string;
installOnly: boolean;
cleanup: boolean;
}
export async function getInputs(): Promise<Inputs> {
@ -14,6 +15,7 @@ export async function getInputs(): Promise<Inputs> {
ageKey: core.getInput('age-key'),
workdir: core.getInput('workdir') || '.',
args: core.getInput('args'),
installOnly: core.getBooleanInput('install-only')
installOnly: core.getBooleanInput('install-only'),
cleanup: core.getBooleanInput('cleanup')
};
}