We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d403840 commit 28fe0d1Copy full SHA for 28fe0d1
.github/workflows/hotfix-release-branches.yml
@@ -139,10 +139,13 @@ jobs:
139
continue
140
fi
141
142
- # Create a new PR
143
- PR_URL=$(gh pr create --title "Merge $HOTFIX_BRANCH into $RELEASE_BRANCH" \
+ # Create a new PR and capture the output
+ PR_OUTPUT=$(gh pr create --title "Merge $HOTFIX_BRANCH into $RELEASE_BRANCH" \
144
--body "Automated PR to merge \`$HOTFIX_BRANCH\` into \`$RELEASE_BRANCH\`." \
145
- --head "$HOTFIX_BRANCH" --base "$RELEASE_BRANCH" --json url --jq '.url')
+ --head "$HOTFIX_BRANCH" --base "$RELEASE_BRANCH")
146
+
147
+ # Extract the URL from the output
148
+ PR_URL=$(echo "$PR_OUTPUT" | grep -Eo 'https://github.com/[^ ]+')
149
150
echo "Pull request created: $PR_URL"
151
0 commit comments