From 79001d834b7e55ce28028bd4854266eada6b3a88 Mon Sep 17 00:00:00 2001 From: Mikkel Jakobsen Date: Wed, 15 May 2024 17:44:13 +0200 Subject: [PATCH] Third try --- .github/workflows/create-cms-pr.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create-cms-pr.yml b/.github/workflows/create-cms-pr.yml index 046c44435c..7a88ac61cf 100644 --- a/.github/workflows/create-cms-pr.yml +++ b/.github/workflows/create-cms-pr.yml @@ -19,4 +19,6 @@ jobs: url: 'https://api.github.com/repos/reload/poc-dpl-cms-pr-trigger/dispatches' method: 'POST' customHeaders: '{"Accept": "application/vnd.github+json", "Authorization": "Bearer ${{ secrets.CMS_PR_CREATION_PAT }}" }' - data: '{"event_type":"create_pr","client_payload":{"branch":"1731", "build_url":"https://github.com/danskernesdigitalebibliotek/dpl-react/releases/download/branch-user-registration-form-v2/dist-user-registration-form-v2.zip"}}' + data: '{"event_type":"create_pr","client_payload":{"branch":"${{ env.BRANCH_NAME }}", "build_url":"https://github.com/danskernesdigitalebibliotek/dpl-react/releases/download/branch-user-registration-form-v2/dist-user-registration-form-v2.zip"}}' + env: + BRANCH_NAME: ${{ github.head_ref || github.ref_name }}