From 6edcdd389045333aaeb17c7aa39854ff205758ee Mon Sep 17 00:00:00 2001 From: Davide Girardi Date: Fri, 23 Dec 2022 10:53:02 +0100 Subject: [PATCH] Use environment variable for branch name --- .github/workflows/netlify-pr.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/netlify-pr.yaml b/.github/workflows/netlify-pr.yaml index e1ba2ef..f1d4dce 100644 --- a/.github/workflows/netlify-pr.yaml +++ b/.github/workflows/netlify-pr.yaml @@ -46,7 +46,9 @@ 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/${{ github.event.workflow_run.head_branch }}/config/element_io_preview.json > webapp/config.json + env: + HEADBRACH: ${{ github.event.workflow_run.head_branch }} + run: curl -s "https://raw.githubusercontent.com/vector-im/element-call/${HEADBRACH}/config/element_io_preview.json" > webapp/config.json - name: ☁️ Deploy to Netlify id: netlify