channel support

This commit is contained in:
CrazyMax
2023-03-10 00:40:26 +01:00
parent 475e5bf1db
commit 59b62980d1
6 changed files with 44 additions and 5 deletions

View File

@ -2,10 +2,12 @@ import * as core from '@actions/core';
export interface Inputs {
version: string;
channel: string;
}
export function getInputs(): Inputs {
return {
version: core.getInput('version')
version: core.getInput('version'),
channel: core.getInput('channel')
};
}

View File

@ -17,7 +17,8 @@ actionsToolkit.run(
const install = new Install({
runDir: runDir,
version: input.version
version: input.version,
channel: input.channel
});
let toolDir;
if (!(await Docker.isAvailable()) || input.version) {