Skip to content

Commit

Permalink
ci(wasm comments): only create comments if the branch is from the repo (
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolg42 authored Feb 13, 2024
1 parent 9308f18 commit 1eb2deb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/wasm-benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/wasm-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 1eb2deb

Please sign in to comment.