diff --git a/README.md b/README.md index 5fbb642..ca4f544 100644 --- a/README.md +++ b/README.md @@ -38,3 +38,4 @@ The action has the following options: | `tags` | Optional extra tags to add to the tests | False | | | `env` | Optional environment to add to the tests | False | | | `logs` | When set to "true" enables forwarding content from the XML reports as Logs. The content inside ``, ``, and `` is collected as logs. Logs from elements inside a `` are automatically connected to the test. | False | | +| `extra-args` | Extra args to be passed to the datadog-ci junit upload command.| False | | diff --git a/action.yaml b/action.yaml index f79617c..a58346a 100644 --- a/action.yaml +++ b/action.yaml @@ -33,6 +33,10 @@ inputs: logs: required: false description: Set to "true" to enable forwarding content from XML reports as logs. + extra-args: + default: '' + description: Extra args to be passed to the datadog-ci cli. + required: false runs: using: "composite" steps: @@ -51,6 +55,7 @@ runs: --service ${{ inputs.service }} \ --logs \ --max-concurrency ${{ inputs.concurrency }} \ + ${{ inputs.extra-args }} \ ${{ inputs.files }} env: DATADOG_API_KEY: ${{ inputs.api-key }} @@ -64,6 +69,7 @@ runs: datadog-ci junit upload \ --service ${{ inputs.service }} \ --max-concurrency ${{ inputs.concurrency }} \ + ${{ inputs.extra-args }} \ ${{ inputs.files }} env: DATADOG_API_KEY: ${{ inputs.api-key }}