mirror of
https://github.com/coder/coder.git
synced 2026-09-24 06:47:27 +08:00
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:
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user