From 7156f4b36bfa1e0cdfd5ae4bac75b32fc5a92ad8 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Thu, 21 Jan 2021 14:28:24 -0500 Subject: [PATCH] fix builds for PRs from forks --- .github/workflows/deploy.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 21539aa04..ab425c72a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -75,19 +75,25 @@ jobs: KNOWN_APP_DOMAINS: lbry.tv,lbry.lat,odysee.com - uses: actions/upload-artifact@v2 - if: startsWith(runner.os, 'linux') + if: | + startsWith(runner.os, 'linux') && + github.event.pull_request.head.repo.full_name == github.repository with: name: Linux path: ./dist/electron/*.* - uses: actions/upload-artifact@v2 - if: startsWith(runner.os, 'mac') + if: | + startsWith(runner.os, 'mac') && + github.event.pull_request.head.repo.full_name == github.repository with: name: macOS path: ./dist/electron/*.* - uses: actions/upload-artifact@v2 - if: startsWith(runner.os, 'windows') + if: | + startsWith(runner.os, 'windows') && + github.event.pull_request.head.repo.full_name == github.repository with: name: Windows path: ./dist/electron/*.*