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 }}