switch to actions-toolkit implementation

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax committed 2023-02-21 09:42:52 +01:00
1 parent 12d39e1bb9
commit df78eaf547
5 files changed
+242 -45

No files matched your search

+2 -6
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'
};
}