From 42be9afaf6755e48006808f492b23c57f6fe451d Mon Sep 17 00:00:00 2001 From: shane knapp Date: Wed, 28 Aug 2024 15:56:45 -0700 Subject: [PATCH] fixing bash conditionals... again --- .github/workflows/deploy-hubs.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-hubs.yaml b/.github/workflows/deploy-hubs.yaml index 25d8c75ca..144f72728 100644 --- a/.github/workflows/deploy-hubs.yaml +++ b/.github/workflows/deploy-hubs.yaml @@ -27,7 +27,7 @@ jobs: # present, this means the base hub image has changed, and all hubs # (staging or prod) need to be redeployed. # - if [[ -n GITHUB_PR_LABEL_HUB_IMAGES || -n GITHUB_PR_LABEL_JUPYTERHUB_DEPLOYMENT ]]; then + if [[ -n ${GITHUB_PR_LABEL_HUB_IMAGES} || -n ${GITHUB_PR_LABEL_JUPYTERHUB_DEPLOYMENT} ]]; then echo "DEPLOY=1" >> $GITHUB_ENV # Otherwise, check to see if the PR labels contain any hubs, and # deploy just those hubs to staging. @@ -121,7 +121,7 @@ jobs: # present, this means the base hub image has changed, and all hubs # (staging or prod) need to be redeployed. # - if [[ -v GITHUB_PR_LABEL_HUB_IMAGES || -v GITHUB_PR_LABEL_JUPYTERHUB_DEPLOYMENT ]]; then + if [[ -n ${GITHUB_PR_LABEL_HUB_IMAGES} || -n ${GITHUB_PR_LABEL_JUPYTERHUB_DEPLOYMENT} ]]; then echo "DEPLOY=1" >> $GITHUB_ENV # Otherwise, check to see if the PR labels contain any hubs, and # deploy just those hubs to prod.