From 97fb5020cf43e169e0d12b0e29a0e1a09ae7ebfd Mon Sep 17 00:00:00 2001 From: Ammar Bandukwala Date: Fri, 2 Jun 2023 15:18:09 -0500 Subject: [PATCH] hotfix(ci): correctly detect repo name (#7820) --- .github/actions/upload-datadog/action.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/actions/upload-datadog/action.yaml b/.github/actions/upload-datadog/action.yaml index 84fc98b19e..04247ecff8 100644 --- a/.github/actions/upload-datadog/action.yaml +++ b/.github/actions/upload-datadog/action.yaml @@ -9,7 +9,9 @@ runs: steps: - shell: bash run: | - if [[ ${{ github.event.pull_request.head.repo.full_name != 'coder/coder' }} ]]; then + repo_name=${{ github.event.pull_request.head.repo.full_name }} + echo "repo_name: $repo_name" + if [[ $repo_name != "coder/coder" ]]; then echo "Not a pull request from the main repo, skipping..." exit 0 fi