Skip to content

Commit

Permalink
Add datadog secret param to main workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
oxve committed Jul 14, 2023
1 parent 996c93f commit a2b2ccc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,5 @@ jobs:
with:
platform: linux-coverage
nightly: ${{ github.event.inputs.nightly }}
secrets:
DD_API_KEY: ${{ secrets.DD_API_KEY }}
7 changes: 6 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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/

0 comments on commit a2b2ccc

Please sign in to comment.