From de916c1bcbad5e8703ff48444a1b31e9efea9e68 Mon Sep 17 00:00:00 2001 From: Ammar Bandukwala Date: Sat, 3 Jun 2023 20:37:04 +0000 Subject: [PATCH] ci: skip DataDog upload when dependabot --- .github/actions/upload-datadog/action.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/actions/upload-datadog/action.yaml b/.github/actions/upload-datadog/action.yaml index d1881d9a723ab..2deac2b41f030 100644 --- a/.github/actions/upload-datadog/action.yaml +++ b/.github/actions/upload-datadog/action.yaml @@ -15,6 +15,11 @@ runs: echo "Not a pull request from the main repo, skipping..." exit 0 fi + if [[ -z "${{ inputs.api-key }}" ]]; then + # This can happen for dependabot. + echo "No API key provided, skipping..." + exit 0 + fi npm install -g @datadog/datadog-ci datadog-ci junit upload --service coder ./gotests.xml \ --tags os:${{runner.os}} --tags runner_name:${{runner.name}}