switch to actions-toolkit implementation
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import * as core from '@actions/core';
|
||||
import {Util} from '@docker/actions-toolkit/lib/util';
|
||||
|
||||
export interface Inputs {
|
||||
image: string;
|
||||
@ -8,11 +9,6 @@ export interface Inputs {
|
||||
export function getInputs(): Inputs {
|
||||
return {
|
||||
image: core.getInput('image') || 'tonistiigi/binfmt:latest',
|
||||
platforms:
|
||||
core
|
||||
.getInput('platforms')
|
||||
.split(',')
|
||||
.map(v => v.trim())
|
||||
.join(',') || 'all'
|
||||
platforms: Util.getInputList('platforms').join(',') || 'all'
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user