Skip to content

Commit 2846f47

Browse files
committed
Create a pull request using GitHub CLI
1 parent 12c6eac commit 2846f47

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ jobs:
5151
git push -u origin "$STAGING_BRANCH"
5252
5353
# Create a pull request using GitHub CLI
54-
gh pr create --title "Deploy $GROUP_ID:$ARTIFACT_ID:$VERSION" --base main --head "$STAGING_BRANCH"
54+
RUN_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
55+
gh pr create \
56+
--title "Deploy $GROUP_ID:$ARTIFACT_ID:$VERSION" \
57+
--body "This PR deploys $GROUP_ID:$ARTIFACT_ID:$VERSION. [View the action run]($RUN_URL)" \
58+
--base main --head "$STAGING_BRANCH"
5559
5660
- name: Generate JaCoCo Badge
5761
id: jacoco

0 commit comments

Comments
 (0)