Skip to content

Commit

Permalink
make packageName custom checker first + elif + else pt5
Browse files Browse the repository at this point in the history
  • Loading branch information
Bidon15 committed Nov 15, 2023
1 parent 0f296c9 commit 5799120
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/reusable_dockerfile_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ jobs:
echo "${{ inputs.packageName }}"
# If there is a user submitted package name, use it
if [[ ! "${{ inputs.packageName }}" != "" ]]; then
if [[ -n "${{ inputs.packageName }}" ]]; then
PACKAGE_NAME=$(echo "${{ inputs.packageName }}" | tr '[:upper:]' '[:lower:]')
echo "INSIDOOOOOR: $PACKAGE_NAME"
elif [[ ! "${{ inputs.packageName }}" == "${{ github.repository }}" ]]; then
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
# e.g: inputs.packageName = "celestiaorg/celestiaorg" is not allowed
Expand Down

0 comments on commit 5799120

Please sign in to comment.