From 902265bdd7931afd613da2f87ebe2b53462b0669 Mon Sep 17 00:00:00 2001 From: Ammar Bandukwala Date: Fri, 2 Jun 2023 12:47:14 -0500 Subject: [PATCH] hotfix(ci): skip DataDog upload on forks (#7802) * hotfix(ci): skip DataDog upload on forks * fixup! hotfix(ci): skip DataDog upload on forks --- .github/actions/upload-datadog/action.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/actions/upload-datadog/action.yaml b/.github/actions/upload-datadog/action.yaml index 88d4454aab..84fc98b19e 100644 --- a/.github/actions/upload-datadog/action.yaml +++ b/.github/actions/upload-datadog/action.yaml @@ -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}}