From 1eb2deb601a5ecb45ed15fcc800002e72e6db313 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=ABl=20Galeran?= Date: Tue, 13 Feb 2024 18:57:11 +0100 Subject: [PATCH] ci(wasm comments): only create comments if the branch is from the repo (#4726) --- .github/workflows/wasm-benchmarks.yml | 4 ++-- .github/workflows/wasm-size.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 }}