From 1bf00a05919fba7138bdacd7987bcab638d01807 Mon Sep 17 00:00:00 2001 From: glmdgrielson <32415403+glmdgrielson@users.noreply.github.com> Date: Mon, 25 Nov 2024 14:06:53 -0500 Subject: [PATCH] Fix CI requiring original repo (#560) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## ✅ Changes - **fix**: This should fix the CI failing on forks. ## 🌄 Context I had noticed when fixing the issue of the cap on Numeric fields that the CI consistently failed. Looking from the build logs, I think the issue is that it looks for secrets related to the main repo in a way that seems hardcoded. This _should_ fix that particular issue. --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cb85622b..e483d854 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,9 +52,9 @@ jobs: path: dist # Deploy Preview - name: Deploy Preview - if: github.ref != 'refs/heads/master' && github.event.repository.fork == false + if: github.ref != 'refs/heads/master' && !github.event.pull_request.head.repo.fork run: npm run deploy:preview -- --auth ${{secrets.NETLIFY_AUTH_TOKEN}} --alias $GITHUB_RUN_ID # Deploy Production - name: Deploy Production - if: github.ref == 'refs/heads/master' && github.event.repository.fork == false + if: github.ref == 'refs/heads/master' && !github.event.pull_request.head.repo.fork run: npm run deploy:prod -- --auth ${{secrets.NETLIFY_AUTH_TOKEN}}