hotfix(ci): skip DataDog upload on forks (#7802)

* hotfix(ci): skip DataDog upload on forks

* fixup! hotfix(ci): skip DataDog upload on forks
This commit is contained in:
Ammar Bandukwala
2023-06-02 17:47:14 +00:00
committed by GitHub
parent 6fdebd8a07
commit 902265bdd7
@@ -9,6 +9,10 @@ runs:
steps:
- shell: bash
run: |
if [[ ${{ github.event.pull_request.head.repo.full_name != 'coder/coder' }} ]]; then
echo "Not a pull request from the main repo, 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}}