From bbd281120f4e02ee11c631f9d1ac7d3fb23833e8 Mon Sep 17 00:00:00 2001 From: Mikkel Jakobsen Date: Fri, 17 May 2024 10:12:39 +0200 Subject: [PATCH] Add summary to create-cms-pr workflow --- .github/workflows/create-cms-pr.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/create-cms-pr.yml b/.github/workflows/create-cms-pr.yml index 24e4a5c2a6..80be4a7387 100644 --- a/.github/workflows/create-cms-pr.yml +++ b/.github/workflows/create-cms-pr.yml @@ -23,8 +23,10 @@ jobs: echo "RELEASE_DOWNLOAD_URL=$RELEASE_DOWNLOAD_URL" >> $GITHUB_ENV echo "DEPENDENCY_PACKAGE=$DEPENDENCY_PACKAGE" >> $GITHUB_ENV - name: Invoke external PR workflow + id: invoke_external_pr_workflow uses: fjogeleit/http-request-action@v1 with: + # TODO: remove hardcoded org/repo url: 'https://api.github.com/repos/reload/poc-dpl-cms-pr-trigger/dispatches' method: 'POST' customHeaders: | @@ -41,3 +43,9 @@ jobs: "dependency_package": "${{ env.DEPENDENCY_PACKAGE }}" } } + - name: Adding summary + # TODO: remove hardcoded org/repo + run: | + echo "Requested external PR at: reload/poc-dpl-cms-pr-trigger" >> $GITHUB_STEP_SUMMARY + echo 'Based on the branch' >> $GITHUB_STEP_SUMMARY + if: ${{ steps.invoke_external_pr_workflow.outcome == 'success' }}