diff --git a/.github/workflows/validate-frontmatter.yml b/.github/workflows/validate-frontmatter.yml index f4fadefda2d..9cc95f2d081 100644 --- a/.github/workflows/validate-frontmatter.yml +++ b/.github/workflows/validate-frontmatter.yml @@ -54,7 +54,7 @@ jobs: # Step 6: Leave a comment if the validation has failed and if it's not a PR from a fork - name: Comment on PR - if: failure() && github.repository != 'SSWConsulting/SSW.Rules.Content' + if: failure() && github.event.pull_request.head.repo.fork == false uses: mshick/add-pr-comment@v2 with: message: |