ci: skip DataDog upload for dependabot (#7831)

This commit is contained in:
Ammar Bandukwala
2023-06-03 20:47:09 +00:00
committed by GitHub
parent b26dd4b802
commit b62e22766f
@@ -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}}