Skip to content

Commit

Permalink
Merge pull request #24 from RasaHQ/fix-test-run-schedule
Browse files Browse the repository at this point in the history
Fix failure and schedule of test run on azure
  • Loading branch information
sanchariGr authored Jun 7, 2024
2 parents cc716f8 + 283a0db commit 3e176be
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions .github/workflows/run-e2e-tests-on-azure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Continous Integration and Deployment

on:
schedule:
# Run cron job at 8AM Monday to Sunday.
- cron: '0 8 * * *'
# Run cron job at 8AM Monday every week.
- cron: '0 8 * * 1'
workflow_dispatch:

env:
Expand Down Expand Up @@ -71,21 +71,6 @@ jobs:
run: |
make train
- name: Upload model to Rasa X
id: upload_model
run: |
cd models
files=(*)
curl -k -F "model=@$files" "${{secrets.RASA_X_DEPLOYMENT}}/api/projects/default/models?api_token=${{secrets.RASA_X_TOKEN}}"
echo "model=${files%%.*}" >> "$GITHUB_OUTPUT"
- name: Tag model as production in Rasa X
if: github.ref == 'refs/heads/main'
run: |
curl --request PUT \
--url "${{secrets.RASA_X_DEPLOYMENT}}/api/projects/default/models/${{steps.upload_model.outputs.model}}/tags/production?api_token=${{secrets.RASA_X_TOKEN}} \
--header 'content-type: application/json'
- name: Persist model
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
with:
Expand Down

0 comments on commit 3e176be

Please sign in to comment.