Skip to content

Commit 0e8597e

Browse files
authored
Update action.yml
1 parent d845128 commit 0e8597e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

action.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,19 @@ runs:
7979
8080
# Try to create PR if requested
8181
if [[ "${{ inputs.create_pr }}" == "true" ]]; then
82-
if gh pr create \
82+
PR_URL=$(gh pr create \
8383
--base "${{ github.ref_name }}" \
8484
--head "$BRANCH_NAME" \
8585
--title "feat: Update MCP server with latest generated code" \
8686
--body "Auto generated PR with MCP server code by CodeGlide.
8787
8888
**Generated from:** \`${{ inputs.input_directory }}\`
8989
**Generated by:** CodeGlide MCP Generator
90-
**Triggered by:** @${{ github.actor }}" > /dev/null 2>&1; then
90+
**Triggered by:** @${{ github.actor }}")
91+
92+
if [ $? -eq 0 ]; then
9193
echo "Pull request created successfully!"
92-
echo "View PR at: https://github.com/${{ github.repository }}/pull/..."
94+
echo "View PR at: $PR_URL"
9395
else
9496
echo "Could not create PR (insufficient permissions)"
9597
echo "To create a PR manually, visit:"
@@ -114,4 +116,3 @@ runs:
114116
path: generated-mcp/
115117

116118

117-

0 commit comments

Comments
 (0)