From 9088ee8b15c8020b91b542a41cfb93b3a9339f8b Mon Sep 17 00:00:00 2001 From: kdivya153 <121901963+kdivya153@users.noreply.github.com> Date: Mon, 28 Oct 2024 14:51:05 -0400 Subject: [PATCH] fix: Only invoke PR Workflow on PRs (Not external triggers) (#338) --- .github/workflows/pr-comment.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pr-comment.yml b/.github/workflows/pr-comment.yml index e27cc3ddc..6119c2eeb 100644 --- a/.github/workflows/pr-comment.yml +++ b/.github/workflows/pr-comment.yml @@ -37,6 +37,7 @@ jobs: ./.github/workflows/utils.sh unzipArtifact - name: Post a Comment + if: env.PR_NUMBER != '' uses: actions/github-script@v6 with: script: |