From ea0c86893d6759bf2805c3c2fe0c4f55a9e8670e Mon Sep 17 00:00:00 2001 From: NourEldin Yasser Date: Wed, 24 Feb 2021 14:48:01 +0200 Subject: [PATCH] test --- .github/workflows/luis_ci.yaml | 15 ++++++--------- luis-app/model.lu | 1 - 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/luis_ci.yaml b/.github/workflows/luis_ci.yaml index 4132e7d..e9a03ea 100644 --- a/.github/workflows/luis_ci.yaml +++ b/.github/workflows/luis_ci.yaml @@ -92,19 +92,16 @@ jobs: bf luis:application:list --subscriptionKey $LUISAuthoringKey --endpoint $LUISAuthoringEndpoint | \ jq -c '.[] | select(.name | . and contains('\"$LUIS_MASTER_APP_NAME\"')) | .id' | \ xargs -I {} echo "LUISAppId={}" >> $GITHUB_ENV - echo [ ${#LUISAppId} -eq 36 ] - echo "LUISAppExists=[ ${#LUISAppId} -eq 36 ]" >> $GITHUB_ENV - echo $LUISAppId - echo $LUISAppExists # create application if necessary - name: Create application if doesn't exist - if: env.LUISAppExists run: | - bf luis:application:create --name $LUIS_MASTER_APP_NAME --subscriptionKey $LUISAuthoringKey --endpoint $LUISAuthoringEndpoint --versionId=0.1 - bf luis:application:list --subscriptionKey $LUISAuthoringKey --endpoint $LUISAuthoringEndpoint | \ - jq -c '.[] | select(.name | . and contains('\"$LUIS_MASTER_APP_NAME\"')) | .id' | \ - xargs -I {} echo "LUISAppId={}" >> $GITHUB_ENV + if [ ${#LUISAppId} -ne 36 ]; then + bf luis:application:create --name $LUIS_MASTER_APP_NAME --subscriptionKey $LUISAuthoringKey --endpoint $LUISAuthoringEndpoint --versionId=0.1 + bf luis:application:list --subscriptionKey $LUISAuthoringKey --endpoint $LUISAuthoringEndpoint | \ + jq -c '.[] | select(.name | . and contains('\"$LUIS_MASTER_APP_NAME\"')) | .id' | \ + xargs -I {} echo "LUISAppId={}" >> $GITHUB_ENV + fi # Check that we found the master app Id - failure probably indicates misconfiguration - name: Validate application ID diff --git a/luis-app/model.lu b/luis-app/model.lu index 4a07595..2ec668a 100644 --- a/luis-app/model.lu +++ b/luis-app/model.lu @@ -18,7 +18,6 @@ - my nearest airport is manchester - the easter holiday is early april this year - the swiss alps is one of my favorite places -- usually i work from home ## RequestVacation