diff --git a/README.md b/README.md index e725725..15f8d79 100644 --- a/README.md +++ b/README.md @@ -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` | diff --git a/action.yml b/action.yml index ff074c3..25a4257 100644 --- a/action.yml +++ b/action.yml @@ -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 @@ -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