Skip to content

Commit

Permalink
Adding condition PR!=null for posting comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kdivya153 authored Oct 29, 2024
1 parent eb10d13 commit 9f80826
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -50,4 +50,4 @@ jobs:
Pending: ${{ env.Pending }}
Skipped: ${{ env.Skipped }}
ARTIFACT_URL: ${{ env.ARTIFACT_URL }}
JOB_PATH: ${{ env.JOB_PATH }}
JOB_PATH: ${{ env.JOB_PATH }}

0 comments on commit 9f80826

Please sign in to comment.