diff --git a/.github/workflows/pr-comment-cpe.yml b/.github/workflows/pr-comment-cpe.yml index 8f66688..bd54515 100644 --- a/.github/workflows/pr-comment-cpe.yml +++ b/.github/workflows/pr-comment-cpe.yml @@ -7,8 +7,8 @@ on: jobs: cpe-process-comment: - # Only run on PR comments - if: github.event.issue.pull_request + # Only run on PR comments and if PR is open + if: ${{ github.event.issue.pull_request && github.event.issue.state == 'open' }} runs-on: ubuntu-latest permissions: write-all steps: