mirror of
https://github.com/docker/setup-docker-action.git
synced 2026-01-31 07:54:56 +01:00
channel support
This commit is contained in:
@@ -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')
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user