diff --git a/.github/workflows/build-and-deploy-dev.yml b/.github/workflows/build-and-deploy-dev.yml index a2e16a7c1..afa59be36 100644 --- a/.github/workflows/build-and-deploy-dev.yml +++ b/.github/workflows/build-and-deploy-dev.yml @@ -53,11 +53,13 @@ jobs: steps: - name: Check secrets run: | - if [[ -z "${{ secrets.AZURE_CREDENTIALS }}" ]]; then + AZURE_CREDENTIALS="${{ secrets.AZURE_CREDENTIALS }}" + if [[ ${#AZURE_CREDENTIALS} -le 0 ]]; then echo "AZURE_CREDENTIALS is not set" exit 1 fi - if [[ -z "${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE_DEV }}" ]]; then + AZURE_WEBAPP_PUBLISH_PROFILE_DEV="${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE_DEV }}" + if [[ ${#AZURE_WEBAPP_PUBLISH_PROFILE_DEV} -le 0 ]]; then echo "AZURE_WEBAPP_PUBLISH_PROFILE_DEV is not set" exit 1 fi