Removed changes from main module

Signed-off-by: Jyotsna <Josh-01@github.com>
This commit is contained in:
Jyotsna 2020-11-05 12:36:20 +05:30
parent f31af72910
commit dd55519eee
3 changed files with 11 additions and 16 deletions

View file

@ -54,7 +54,6 @@ export function tmpNameSync(options?: tmp.TmpNameOptions): string {
}
export async function getInputs(defaultContext: string): Promise<Inputs> {
let userInputs = {
context: core.getInput('context') || defaultContext,
file: core.getInput('file') || 'Dockerfile',
@ -79,7 +78,7 @@ export async function getInputs(defaultContext: string): Promise<Inputs> {
//Add repo as source-label if not already supplied by user
const sourceLabelKey = 'org.opencontainers.image.source';
if( userInputs.labels.find(val => val.startsWith(sourceLabelKey) == true ) == null){
if (userInputs.labels.find(val => val.startsWith(sourceLabelKey) == true) == null) {
userInputs.labels.push(
`${sourceLabelKey}=https://github.com/${github.context.repo.owner}/${github.context.repo.repo}`
);