From 0f296c9335df475c5c33421c1b585ff43584c799 Mon Sep 17 00:00:00 2001 From: Nhu Viet Nguyen Date: Wed, 15 Nov 2023 18:32:27 +0100 Subject: [PATCH] make packageName custom checker first + elif + else pt4 --- .github/workflows/reusable_dockerfile_pipeline.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/reusable_dockerfile_pipeline.yml b/.github/workflows/reusable_dockerfile_pipeline.yml index 20aea00..2440b88 100644 --- a/.github/workflows/reusable_dockerfile_pipeline.yml +++ b/.github/workflows/reusable_dockerfile_pipeline.yml @@ -51,11 +51,12 @@ jobs: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV echo "short_sha=`echo ${GITHUB_SHA} | cut -c1-8`" >> "$GITHUB_OUTPUT" # yamllint disable - + echo "${{ inputs.packageName }}" # If there is a user submitted package name, use it if [[ ! "${{ inputs.packageName }}" != "" ]]; then PACKAGE_NAME=$(echo "${{ inputs.packageName }}" | tr '[:upper:]' '[:lower:]') + echo "INSIDOOOOOR: $PACKAGE_NAME" elif [[ ! "${{ inputs.packageName }}" == "${{ github.repository }}" ]]; then # If a user submitted package name that has the naming containing # both the repository owner and repository name, we fail