From 40dee0dbe149973e3b5d03a2db94f61329298107 Mon Sep 17 00:00:00 2001 From: Nhu Viet Nguyen Date: Tue, 14 Nov 2023 12:07:59 +0100 Subject: [PATCH] fix: remove redundant checks --- .../workflows/reusable_dockerfile_pipeline.yml | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/.github/workflows/reusable_dockerfile_pipeline.yml b/.github/workflows/reusable_dockerfile_pipeline.yml index f4efe47..ffa9858 100644 --- a/.github/workflows/reusable_dockerfile_pipeline.yml +++ b/.github/workflows/reusable_dockerfile_pipeline.yml @@ -52,21 +52,6 @@ jobs: echo "short_sha=`echo ${GITHUB_SHA} | cut -c1-8`" >> "$GITHUB_OUTPUT" # yamllint disable - echo "IMAGE_NAME=$REPO_NAME" >> $GITHUB_ENV - echo "image_name=$REPO_NAME" >> "$GITHUB_OUTPUT" - - # here we validate if we have specified a different package name in - # the inputs, if so, we change the package to it. - if [[ ${{ inputs.packageName }} != ${{ github.repository}} ]];then - # validate the input package name characters - if [[ ! "${{ inputs.packageName }}" =~ ^[A-Za-z0-9\-]+$ ]]; then - echo "------------------------------------------------------------" - echo "ERROR: Package name not valid! => [ ${{ inputs.packageName }} ]" - echo "ONLY can use: A-Za-z0-9\-" - echo "------------------------------------------------------------" - exit 1 - fi - # Set the default package name to the repository name PACKAGE_NAME=$REPO_NAME