Skip to content

Commit

Permalink
Add summary to create_pr workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
spaceo committed May 17, 2024
1 parent ec21b31 commit f5b22eb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/create-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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' }}

0 comments on commit f5b22eb

Please sign in to comment.