Resolve reviews

Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
divyansh42 2021-02-12 22:50:23 +05:30
parent 749ffdbf42
commit 48ac9865be
4 changed files with 7 additions and 4 deletions

View file

@ -45,7 +45,9 @@ inputs:
default: 'false'
required: false
archs:
description: 'ARCH of the image to build, for multiple ARCHs seperate by a comma. For example, "arm64,amd64"'
description: |
'Architecture(s) to build the image(s) for. For multiple architectures,
separate by a comma. For example, "arm64,amd64"'
default: 'amd64'
required: false
outputs:

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -1,7 +1,8 @@
// This file was auto-generated by action-io-generator. Do not edit by hand!
export enum Inputs {
/**
* ARCH of the image to build, for multiple ARCHs seperate by a comma. For example, "arm64,amd64"
* 'Architecture(s) to build the image(s) for. For multiple architectures,
* separate by a comma. For example, "arm64,amd64"'
* Required: false
* Default: "amd64"
*/

View file

@ -20,7 +20,7 @@ export async function run(): Promise<void> {
const tagsList: string[] = tags.split(" ");
const newImage = `${image}:${tagsList[0]}`;
const useOCI = core.getInput(Inputs.OCI) === "true";
let archs = core.getInput(Inputs.ARCHS);
let archs: string | undefined = core.getInput(Inputs.ARCHS);
// remove white spaces (if any) in archs input
archs = archs.replace(/\s+/g, "");