diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4452a99d..51750311 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -143,14 +143,14 @@ jobs: echo "Remember to apply a version number bump with the correct severity when publishing a version with breaking changes (\`1.x.x -> 2.x.x\` or \`0.1.x -> 0.2.x\`)." >> semver-comment.txt - name: Post Semver Failure Comment - if: steps.semver.outcome == 'failure' + if: steps.semver.outcome == 'failure' && github.event.pull_request.head.repo.full_name == github.repository uses: marocchino/sticky-pull-request-comment@v2.9.4 with: header: semver-check path: semver-comment.txt - name: Remove Semver Comment on Success - if: steps.semver.outcome == 'success' + if: steps.semver.outcome == 'success' && github.event.pull_request.head.repo.full_name == github.repository uses: marocchino/sticky-pull-request-comment@v2.9.4 with: header: semver-check