From a4424205c721426b6c1139758ec2ec7693ada15e Mon Sep 17 00:00:00 2001 From: Ammar Bandukwala Date: Fri, 2 Jun 2023 22:03:21 +0000 Subject: [PATCH] ci: truly fix repo name detection --- .github/actions/upload-datadog/action.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/actions/upload-datadog/action.yaml b/.github/actions/upload-datadog/action.yaml index 6bcf242de7..d1881d9a72 100644 --- a/.github/actions/upload-datadog/action.yaml +++ b/.github/actions/upload-datadog/action.yaml @@ -9,9 +9,9 @@ runs: steps: - shell: bash run: | - repo_name=${{ github.repository_owner }}/${{ github.repository_name }} - echo "repo_name: $repo_name" - if [[ $repo_name != "coder/coder" ]]; then + owner=${{ github.repository_owner }} + echo "owner: $owner" + if [[ $owner != "coder" ]]; then echo "Not a pull request from the main repo, skipping..." exit 0 fi