From 089234ae09f07a46d8aed11c6fd08b82bb53de8a Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 21 Dec 2022 15:11:24 +0000 Subject: [PATCH] Use config from the branch we built on PR previews No harm in doing this - just as easy to override config in the code itself. --- .github/workflows/netlify-pr.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/netlify-pr.yaml b/.github/workflows/netlify-pr.yaml index 1eb4ab2..e1ba2ef 100644 --- a/.github/workflows/netlify-pr.yaml +++ b/.github/workflows/netlify-pr.yaml @@ -46,7 +46,7 @@ jobs: run: curl -s https://raw.githubusercontent.com/vector-im/element-call/main/config/netlify_redirects > webapp/_redirects - name: Add config file - run: curl -s https://raw.githubusercontent.com/vector-im/element-call/main/config/element_io_preview.json > webapp/config.json + run: curl -s https://raw.githubusercontent.com/vector-im/element-call/${{ github.event.workflow_run.head_branch }}/config/element_io_preview.json > webapp/config.json - name: ☁️ Deploy to Netlify id: netlify