Skip to content

Commit eb915d4

Browse files
committed
Fix formatting for empty input strings
1 parent b8ccda7 commit eb915d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ runs:
4242
- id: generate-image-name
4343
shell: bash
4444
run: |
45-
if [[ -n ${{ inputs.name }} ]]; then
45+
if [[ -n "${{ inputs.name }}" ]]; then
4646
# A name was specified
4747
IMAGE_NAME=${{ inputs.name }}
48-
elif [[ ${{ inputs.context }} == "." ]] || \
48+
elif [[ "${{ inputs.context }}" == "." ]] || \
4949
[[ ${{ inputs.context }} == "./" ]]; then
5050
# Try to guess the image name from our docker repo naming conventions
5151
# E.g., opensciencegrid/docker-frontier-squid
5252
IMAGE_NAME=${GITHUB_REPOSITORY/\/docker-/\/}
53-
elif [[ -d ${{ inputs.context }} ]]; then
53+
elif [[ -d "${{ inputs.context }}" ]]; then
5454
# Assume that the containing dir is the image name
5555
# TODO: to support more orgs in the opensciencegrid/images repo,
5656
# grab the image name from the full context path instead

0 commit comments

Comments
 (0)