mirror of
https://github.com/docker/setup-qemu-action
synced 2024-11-10 06:41:40 +00:00
Merge pull request #64 from Chocobo1/space
Trim off spaces in `platforms` string
This commit is contained in:
commit
38836d31bd
3 changed files with 8 additions and 3 deletions
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
@ -8,6 +8,11 @@ export interface Inputs {
|
||||||
export function getInputs(): Inputs {
|
export function getInputs(): Inputs {
|
||||||
return {
|
return {
|
||||||
image: core.getInput('image') || 'tonistiigi/binfmt:latest',
|
image: core.getInput('image') || 'tonistiigi/binfmt:latest',
|
||||||
platforms: core.getInput('platforms') || 'all'
|
platforms:
|
||||||
|
core
|
||||||
|
.getInput('platforms')
|
||||||
|
.split(',')
|
||||||
|
.map(v => v.trim())
|
||||||
|
.join(',') || 'all'
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue