From 213e73ad842e930c79856ebcc284e19890dc9774 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Sat, 3 Jun 2023 08:16:38 +0200 Subject: [PATCH] build: only make comment on sizediff job when run from the main repo, take 2 Signed-off-by: deadprogram --- .github/workflows/sizediff.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sizediff.yml b/.github/workflows/sizediff.yml index cdad78cf..05d2cca0 100644 --- a/.github/workflows/sizediff.yml +++ b/.github/workflows/sizediff.yml @@ -88,7 +88,7 @@ jobs: - name: Comment contents run: cat comment.txt - name: Add comment - if: github.repository == 'tinygo-org/tinygo' + if: ${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }} uses: thollander/actions-comment-pull-request@v2.3.1 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}