mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-07-21 18:43:30 +02:00
try capturing gh output and parsing
This commit is contained in:
@ -139,10 +139,13 @@ jobs:
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create a new PR
|
# Create a new PR and capture the output
|
||||||
PR_URL=$(gh pr create --title "Merge $HOTFIX_BRANCH into $RELEASE_BRANCH" \
|
PR_OUTPUT=$(gh pr create --title "Merge $HOTFIX_BRANCH into $RELEASE_BRANCH" \
|
||||||
--body "Automated PR to merge \`$HOTFIX_BRANCH\` into \`$RELEASE_BRANCH\`." \
|
--body "Automated PR to merge \`$HOTFIX_BRANCH\` into \`$RELEASE_BRANCH\`." \
|
||||||
--head "$HOTFIX_BRANCH" --base "$RELEASE_BRANCH" --json url --jq '.url')
|
--head "$HOTFIX_BRANCH" --base "$RELEASE_BRANCH")
|
||||||
|
|
||||||
|
# Extract the URL from the output
|
||||||
|
PR_URL=$(echo "$PR_OUTPUT" | grep -Eo 'https://github.com/[^ ]+')
|
||||||
|
|
||||||
echo "Pull request created: $PR_URL"
|
echo "Pull request created: $PR_URL"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user