diff --git a/.github/workflows/wasm-benchmarks.yml b/.github/workflows/wasm-benchmarks.yml index d0630ff90108..8e5a3124be79 100644 --- a/.github/workflows/wasm-benchmarks.yml +++ b/.github/workflows/wasm-benchmarks.yml @@ -129,9 +129,9 @@ jobs: - name: Create or update report uses: peter-evans/create-or-update-comment@v3 - # Only run on our repository + # Only run on branches from our repository # It avoids an expected failure on forks - if: github.repository == 'prisma/prisma-engines' + if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} with: comment-id: ${{ steps.findReportComment.outputs.comment-id }} issue-number: ${{ github.event.pull_request.number }} diff --git a/.github/workflows/wasm-size.yml b/.github/workflows/wasm-size.yml index 4bf6cb7bd518..82d7a2d7e141 100644 --- a/.github/workflows/wasm-size.yml +++ b/.github/workflows/wasm-size.yml @@ -106,9 +106,9 @@ jobs: - name: Create or update report uses: peter-evans/create-or-update-comment@v3 - # Only run on our repository + # Only run on branches from our repository # It avoids an expected failure on forks - if: github.repository == 'prisma/prisma-engines' + if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} with: comment-id: ${{ steps.findReportComment.outputs.comment-id }} issue-number: ${{ github.event.pull_request.number }}