Skip to content

Commit b62e227

Browse files
authored
ci: skip DataDog upload for dependabot (#7831)
1 parent b26dd4b commit b62e227

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/actions/upload-datadog/action.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ runs:
1515
echo "Not a pull request from the main repo, skipping..."
1616
exit 0
1717
fi
18+
if [[ -z "${{ inputs.api-key }}" ]]; then
19+
# This can happen for dependabot.
20+
echo "No API key provided, skipping..."
21+
exit 0
22+
fi
1823
npm install -g @datadog/datadog-ci
1924
datadog-ci junit upload --service coder ./gotests.xml \
2025
--tags os:${{runner.os}} --tags runner_name:${{runner.name}}

0 commit comments

Comments
 (0)