Trim off spaces in platform string

This allows users to specify platform in a more humane way, for example:
```yaml
env:
  # equals to `linux/amd64, linux/arm/v6`
  platforms: >
    linux/amd64,
    linux/arm/v6

- uses: docker/setup-qemu-action@v2
  with:
    platforms: ${{ env.PLATFORMS }}
```

Signed-off-by: Chocobo1 <Chocobo1@users.noreply.github.com>
This commit is contained in:
Chocobo1
2022-11-25 19:01:52 +08:00
parent e81a89b173
commit 084b720a90
3 changed files with 8 additions and 3 deletions

2
dist/index.js generated vendored

File diff suppressed because one or more lines are too long