From d59f890863234353e881c9d7e4d7fc1999562483 Mon Sep 17 00:00:00 2001 From: Borja Gorriz Date: Thu, 11 May 2023 20:43:29 +0200 Subject: [PATCH 1/4] Added option to skip git metadata upload --- README.md | 1 + action.yaml | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 5fbb642..bbd8948 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 | | +| `skip-git-metadata-upload` | When set to "true" it will skip sending your git metadata with your XML report. | False | 'false'| diff --git a/action.yaml b/action.yaml index f79617c..6c31259 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. + skip-git-metadata-upload: + required: false + description: Set to "true" to skip sending your git metadata with your XML report. + default: 'false' runs: using: "composite" steps: @@ -51,6 +55,7 @@ runs: --service ${{ inputs.service }} \ --logs \ --max-concurrency ${{ inputs.concurrency }} \ + ----skip-git-metadata-upload ${{ inputs.skip-git-metadata-upload == 'true' }} \ ${{ 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 }} \ + --skip-git-metadata-upload ${{ inputs.skip-git-metadata-upload == 'true' }} \ ${{ inputs.files }} env: DATADOG_API_KEY: ${{ inputs.api-key }} From 00c44f79725b0c0fcba74fd85c131673be9c9279 Mon Sep 17 00:00:00 2001 From: Borja Gorriz Date: Thu, 11 May 2023 20:53:54 +0200 Subject: [PATCH 2/4] fix error --- action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yaml b/action.yaml index 6c31259..a3db871 100644 --- a/action.yaml +++ b/action.yaml @@ -55,7 +55,7 @@ runs: --service ${{ inputs.service }} \ --logs \ --max-concurrency ${{ inputs.concurrency }} \ - ----skip-git-metadata-upload ${{ inputs.skip-git-metadata-upload == 'true' }} \ + --skip-git-metadata-upload ${{ inputs.skip-git-metadata-upload == 'true' }} \ ${{ inputs.files }} env: DATADOG_API_KEY: ${{ inputs.api-key }} From 13953e353e1fdd97e94df249ecae6a3dc0b1e113 Mon Sep 17 00:00:00 2001 From: Borja Gorriz Date: Fri, 12 May 2023 16:52:13 +0200 Subject: [PATCH 3/4] change behaviour to add any args --- action.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/action.yaml b/action.yaml index a3db871..a58346a 100644 --- a/action.yaml +++ b/action.yaml @@ -33,10 +33,10 @@ inputs: logs: required: false description: Set to "true" to enable forwarding content from XML reports as logs. - skip-git-metadata-upload: + extra-args: + default: '' + description: Extra args to be passed to the datadog-ci cli. required: false - description: Set to "true" to skip sending your git metadata with your XML report. - default: 'false' runs: using: "composite" steps: @@ -55,7 +55,7 @@ runs: --service ${{ inputs.service }} \ --logs \ --max-concurrency ${{ inputs.concurrency }} \ - --skip-git-metadata-upload ${{ inputs.skip-git-metadata-upload == 'true' }} \ + ${{ inputs.extra-args }} \ ${{ inputs.files }} env: DATADOG_API_KEY: ${{ inputs.api-key }} @@ -69,7 +69,7 @@ runs: datadog-ci junit upload \ --service ${{ inputs.service }} \ --max-concurrency ${{ inputs.concurrency }} \ - --skip-git-metadata-upload ${{ inputs.skip-git-metadata-upload == 'true' }} \ + ${{ inputs.extra-args }} \ ${{ inputs.files }} env: DATADOG_API_KEY: ${{ inputs.api-key }} From 6906584d42770ebcb8cc60fd36883fcab4806e77 Mon Sep 17 00:00:00 2001 From: Borja Gorriz Date: Fri, 12 May 2023 17:01:15 +0200 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bbd8948..ca4f544 100644 --- a/README.md +++ b/README.md @@ -38,4 +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 | | -| `skip-git-metadata-upload` | When set to "true" it will skip sending your git metadata with your XML report. | False | 'false'| +| `extra-args` | Extra args to be passed to the datadog-ci junit upload command.| False | |