2022-10-08 18:39:00 +02:00
|
|
|
import * as core from '@actions/core';
|
|
|
|
|
|
|
|
export interface Inputs {
|
|
|
|
image: string;
|
|
|
|
platforms: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export function getInputs(): Inputs {
|
|
|
|
return {
|
|
|
|
image: core.getInput('image') || 'tonistiigi/binfmt:latest',
|
2022-11-25 19:01:52 +08:00
|
|
|
platforms:
|
|
|
|
core
|
|
|
|
.getInput('platforms')
|
|
|
|
.split(',')
|
|
|
|
.map(v => v.trim())
|
|
|
|
.join(',') || 'all'
|
2022-10-08 18:39:00 +02:00
|
|
|
};
|
|
|
|
}
|