From f5b22eb2f2e077878bc1575cc2612bc494fd89e2 Mon Sep 17 00:00:00 2001 From: Mikkel Jakobsen Date: Fri, 17 May 2024 10:12:00 +0200 Subject: [PATCH] Add summary to create_pr workflow --- .github/workflows/create-pr.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/create-pr.yml b/.github/workflows/create-pr.yml index df7610081..7251eca03 100644 --- a/.github/workflows/create-pr.yml +++ b/.github/workflows/create-pr.yml @@ -44,6 +44,7 @@ jobs: ACCEPTED_BUILD_URL_PREFIX: "${{ vars.ACCEPTED_BUILD_URL_PREFIX }}" - name: Create branch and PR + id: create_pr run: | set -e git config --global user.name ${{ env.GIT_USER_NAME }} @@ -64,3 +65,10 @@ jobs: if: ${{ env.GIT_USER_NAME && env.GIT_USER_EMAIL && env.PACKAGE && env.PR_BRANCH && env.BUILD_URL && steps.manipulate_composer.outcome == 'success' }} env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Adding summary + # TODO: remove hardcoded org/repo + run: | + URL=$(gh pr view --json=url chalcopyrite-nontraditional-spoonbill | jq .url) + echo "Created automated PR at: ${URL}" >> $GITHUB_STEP_SUMMARY + if: ${{ steps.create_pr.outcome == 'success' }}