From 79be0ebe6c4238eda28cd322ad2242ba92fd805b Mon Sep 17 00:00:00 2001 From: Mikkel Jakobsen Date: Wed, 15 May 2024 17:32:12 +0200 Subject: [PATCH] First try --- .github/workflows/create-cms-pr.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create-cms-pr.yml b/.github/workflows/create-cms-pr.yml index 33e6fe6773..ea5c0db973 100644 --- a/.github/workflows/create-cms-pr.yml +++ b/.github/workflows/create-cms-pr.yml @@ -10,7 +10,13 @@ on: - develop jobs: - github-pages: + invoke-external-pr-workflow: runs-on: ubuntu-latest steps: - - run: echo "Hi Mikkel!" + - name: Deploy Stage + uses: fjogeleit/http-request-action@v1 + with: + 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"}}'