File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ jobs:
111
111
TAG="${{ github.event.inputs.tag }}"
112
112
113
113
# Create PR from next to main
114
- PR_RESPONSE =$(gh pr create \
114
+ PR_URL =$(gh pr create \
115
115
--base main \
116
116
--head next \
117
117
--title "Release ${TAG}" \
@@ -123,11 +123,9 @@ jobs:
123
123
- [ ] Verify the release notes in the draft release
124
124
- [ ] Merge this PR after the release is published
125
125
126
- Created by the automated release workflow." \
127
- --json number,url)
126
+ Created by the automated release workflow.")
128
127
129
- PR_NUMBER=$(echo "$PR_RESPONSE" | jq -r '.number')
130
- PR_URL=$(echo "$PR_RESPONSE" | jq -r '.url')
128
+ PR_NUMBER=$(echo "$PR_URL" | sed 's|.*/pull/||')
131
129
132
130
echo "pr-number=${PR_NUMBER}" >> $GITHUB_OUTPUT
133
131
echo "pr-url=${PR_URL}" >> $GITHUB_OUTPUT
Original file line number Diff line number Diff line change 85
85
AHEAD_COUNT="${{ steps.branch-status.outputs.ahead-count }}"
86
86
87
87
# Create PR from main to next
88
- PR_RESPONSE =$(gh pr create \
88
+ PR_URL =$(gh pr create \
89
89
--base next \
90
90
--head main \
91
91
--title "Sync next branch with main" \
@@ -106,11 +106,10 @@ jobs:
106
106
> **Note**: This PR was automatically created by the daily branch sync workflow.
107
107
> If you have any concerns about these changes, please review them carefully before merging." \
108
108
--label "automated" \
109
- --label "sync" \
110
- --json number,url)
109
+ --label "sync")
111
110
112
- PR_NUMBER=$(echo "$PR_RESPONSE" | jq -r '.number' )
113
- PR_URL =$(echo "$PR_RESPONSE " | jq -r '.url ')
111
+ # Extract PR number from URL (e.g., https://github.com/owner/repo/pull/123 -> 123 )
112
+ PR_NUMBER =$(echo "$PR_URL " | sed 's|.*/pull/|| ')
114
113
115
114
echo "pr-number=${PR_NUMBER}" >> $GITHUB_OUTPUT
116
115
echo "pr-url=${PR_URL}" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments