From ae1e43b77928237100f1070c9ac281e253b3fd31 Mon Sep 17 00:00:00 2001 From: Robin Date: Sat, 20 Jan 2024 16:44:17 -0500 Subject: [PATCH] Fix builds on PRs from forks --- .github/workflows/netlify-pr.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/netlify-pr.yaml b/.github/workflows/netlify-pr.yaml index 1ecff434..530e5744 100644 --- a/.github/workflows/netlify-pr.yaml +++ b/.github/workflows/netlify-pr.yaml @@ -47,9 +47,7 @@ jobs: run: curl -s https://raw.githubusercontent.com/element-hq/element-call/main/config/netlify_redirects > webapp/_redirects - name: Add config file - env: - HEADBRACH: ${{ github.event.workflow_run.head_branch }} - run: curl -s "https://raw.githubusercontent.com/element-hq/element-call/${HEADBRACH}/config/element_io_preview.json" > webapp/config.json + run: curl -s "https://raw.githubusercontent.com/${{ github.event.workflow_run.head_repository.full_name }}/${{ github.event.workflow_run.head_branch }}/config/element_io_preview.json" > webapp/config.json - name: ☁️ Deploy to Netlify id: netlify