Skip to content

Commit

Permalink
Add data_validate_args (#13)
Browse files Browse the repository at this point in the history
* Add data_validate_args

* Remove --fail-on-warning in our ci
  • Loading branch information
HotThoughts authored Sep 8, 2021
1 parent ba6fe65 commit 63f1556
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
| `rasa_train` | Run `rasa train` | `true` |
| `rasa_test` | Run `rasa test` | `true` |
| `data_validate` | Validates domain and data files to check for possible mistakes | `true` |
| `data_validate_args` | Additional arguments passed to the `rasa data validate` command | `none` |
| `fine_tune` | Fine-tune an existing model with new training dataset | `false` |
| `workspace` | The root directory containing your Rasa Open Source project | `${{ github.workspace }}` |
| `train_type` | The types of training (available types: `core`/`nlu`/`all`) | `all` |
Expand Down
8 changes: 6 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ inputs:
description: 'Validates domain and data files to check for possible mistakes'
required: true
default: 'true'
data_validate_args:
description: 'Additional arguments passed to the rasa data validate command'
required: false
default: ''
workspace:
description: 'The root directory'
required: false
Expand Down Expand Up @@ -210,8 +214,8 @@ runs:
if [[ "${{ inputs.data_validate }}" == "true" ]]; then
echo "Run data validation"
echo
echo docker run ${{ env.DOCKER_ARGS }} ${{ env.RASA_IMAGE }} data validate
docker run ${{ env.DOCKER_ARGS }} ${{ env.RASA_IMAGE }} data validate
echo docker run ${{ env.DOCKER_ARGS }} ${{ env.RASA_IMAGE }} data validate ${{ inputs.data_validate_args }}
docker run ${{ env.DOCKER_ARGS }} ${{ env.RASA_IMAGE }} data validate ${{ inputs.data_validate_args }}
else
echo "::warning::Data validation is disabled. To turn on data validation set the data_validate parameter to 'true'."
fi
Expand Down

0 comments on commit 63f1556

Please sign in to comment.