Skip to content

Commit

Permalink
make packageName custom checker first + elif + else
Browse files Browse the repository at this point in the history
  • Loading branch information
Bidon15 committed Nov 15, 2023
1 parent 475f012 commit d1df70a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/reusable_dockerfile_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ jobs:
echo "short_sha=`echo ${GITHUB_SHA} | cut -c1-8`" >> "$GITHUB_OUTPUT"
# yamllint disable
# Set the default package name to the repository name
PACKAGE_NAME=$REPO_NAME
# If there is a user submitted package name, use it
if [[ ! "${{ inputs.packageName }}" != "" ]]; then
Expand All @@ -67,6 +65,9 @@ jobs:
echo "Don't use the repository owner and repository name in the package name."
echo "------------------------------------------------------------"
exit 1
else
# Set the default package name to the repository name
PACKAGE_NAME=$REPO_NAME
fi
# validate the package name characters
Expand Down

0 comments on commit d1df70a

Please sign in to comment.