mirror of
https://github.com/docker/setup-docker-action.git
synced 2025-06-13 15:17:11 +02: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