From 9f808266df5b58395f1ac6916ed2d1e21099c2aa Mon Sep 17 00:00:00 2001 From: kdivya153 <121901963+kdivya153@users.noreply.github.com> Date: Mon, 28 Oct 2024 21:46:44 -0400 Subject: [PATCH] Adding condition PR!=null for posting comments --- .github/workflows/pr-comment.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-comment.yml b/.github/workflows/pr-comment.yml index 6119c2ee..296664bb 100644 --- a/.github/workflows/pr-comment.yml +++ b/.github/workflows/pr-comment.yml @@ -37,7 +37,7 @@ jobs: ./.github/workflows/utils.sh unzipArtifact - name: Post a Comment - if: env.PR_NUMBER != '' + if: ${{ env.PR_NUMBER != null && env.PR_NUMBER != '' }} uses: actions/github-script@v6 with: script: | @@ -50,4 +50,4 @@ jobs: Pending: ${{ env.Pending }} Skipped: ${{ env.Skipped }} ARTIFACT_URL: ${{ env.ARTIFACT_URL }} - JOB_PATH: ${{ env.JOB_PATH }} \ No newline at end of file + JOB_PATH: ${{ env.JOB_PATH }}