Skip to content

Commit

Permalink
Merge pull request #64 from Chocobo1/space
Browse files Browse the repository at this point in the history
Trim off spaces in  `platforms` string
  • Loading branch information
crazy-max committed Nov 25, 2022
2 parents e81a89b + 084b720 commit 38836d3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ export interface Inputs {
export function getInputs(): Inputs {
return {
image: core.getInput('image') || 'tonistiigi/binfmt:latest',
platforms: core.getInput('platforms') || 'all'
platforms:
core
.getInput('platforms')
.split(',')
.map(v => v.trim())
.join(',') || 'all'
};
}

0 comments on commit 38836d3

Please sign in to comment.