switch to actions-toolkit implementation

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2023-02-19 20:49:10 +01:00
parent 12d39e1bb9
commit df78eaf547
5 changed files with 242 additions and 45 deletions

View File

@ -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'
};
}