Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
nsalem95 committed Feb 24, 2021
1 parent d391277 commit ea0c868
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/luis_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion luis-app/model.lu
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ea0c868

Please sign in to comment.