From 38ab39272a4f9a9698b5aa839136aae13d963f8f Mon Sep 17 00:00:00 2001 From: Ammar Bandukwala Date: Fri, 2 Jun 2023 19:26:29 +0000 Subject: [PATCH 1/2] hotfix(ci): correctly detect repo name --- .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 84fc98b19ee1e..e9bbe9cb0abc4 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 From 9e2f50c55c6763b0ad221ff0835b13a253fcdfd4 Mon Sep 17 00:00:00 2001 From: Ammar Bandukwala Date: Fri, 2 Jun 2023 19:33:47 +0000 Subject: [PATCH 2/2] fixup! hotfix(ci): correctly detect repo name --- .github/actions/upload-datadog/action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/upload-datadog/action.yaml b/.github/actions/upload-datadog/action.yaml index e9bbe9cb0abc4..04247ecff8297 100644 --- a/.github/actions/upload-datadog/action.yaml +++ b/.github/actions/upload-datadog/action.yaml @@ -11,7 +11,7 @@ runs: run: | repo_name=${{ github.event.pull_request.head.repo.full_name }} echo "repo_name: $repo_name" - if [[ $repo_name != "coder/coder" }} ]]; then + if [[ $repo_name != "coder/coder" ]]; then echo "Not a pull request from the main repo, skipping..." exit 0 fi