From a2b2ccc252fa8c09c969e3e1acb8af3f098821f0 Mon Sep 17 00:00:00 2001 From: Oscar Vestlie Date: Fri, 14 Jul 2023 10:53:44 -0700 Subject: [PATCH] Add datadog secret param to main workflow --- .github/workflows/linux.yaml | 2 ++ .github/workflows/main.yaml | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux.yaml b/.github/workflows/linux.yaml index e15041dd6e616..ec6cf3d3b3a6f 100644 --- a/.github/workflows/linux.yaml +++ b/.github/workflows/linux.yaml @@ -70,3 +70,5 @@ jobs: with: platform: linux-coverage nightly: ${{ github.event.inputs.nightly }} + secrets: + DD_API_KEY: ${{ secrets.DD_API_KEY }} diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 4e122d9de4b88..cadd9be017627 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -29,6 +29,10 @@ on: required: false type: boolean default: false + secrets: + DD_API_KEY: + description: DataDog API key + required: false # Global env vars. env: @@ -285,6 +289,7 @@ jobs: DD_TAGS: name:${{matrix.name}},platform:${{matrix.platform}} steps: # TODO: Check if artifact exists + # TODO: Check if secret is set - name: Collect Unit Test Reports uses: actions/download-artifact@v3 with: @@ -301,6 +306,6 @@ jobs: shell: bash run: | datadog-ci junit upload \ - --service cobalt \ + --service ${{ github.event.repository.name }} \ --max-concurrency 20 \ unit-test-reports/