@@ -115,11 +115,9 @@ jobs:
115115 env :
116116 VERSION_NUMBER : ${{ github.event.inputs.version_number }}
117117 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
118- REPO_FULL_NAME : ${{ github.repository }}
119118 working-directory : ./local_kernel
120119 run : |
121120 PR_URL=$(gh pr create \
122- --repo "$REPO_FULL_NAME" \
123121 --base main \
124122 --head "release-prep-$VERSION_NUMBER" \
125123 --title "[AUTO][RELEASE]: Release $VERSION_NUMBER" \
@@ -129,12 +127,11 @@ jobs:
129127 - name : Wait for PR to be merged
130128 env :
131129 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
132- REPO_FULL_NAME : ${{ github.repository }}
133130 working-directory : ./local_kernel
134131 run : |
135132 PR_NUMBER=$(echo "$PR_URL" | grep -oE '[0-9]+$')
136133 while true; do
137- STATE=$(gh pr view "$PR_NUMBER" --repo "$REPO_FULL_NAME" -- json state --jq .state)
134+ STATE=$(gh pr view "$PR_NUMBER" --json state --jq .state)
138135 if [ "$STATE" = "MERGED" ]; then
139136 echo "PR merged successfully"
140137 break
@@ -199,7 +196,7 @@ jobs:
199196 working-directory : ./local_kernel
200197 run : |
201198 # Only delete release-prep branch if the PR was already merged
202- PR_STATE=$(gh pr list --repo "${{ github.repository }}" -- head "release-prep-$VERSION_NUMBER" --json state --jq '.[0].state' 2>/dev/null || echo "")
199+ PR_STATE=$(gh pr list --head "release-prep-$VERSION_NUMBER" --json state --jq '.[0].state' 2>/dev/null || echo "")
203200 if [ "$PR_STATE" = "MERGED" ] || [ -z "$PR_STATE" ]; then
204201 git push origin --delete "release-prep-$VERSION_NUMBER" || true
205202 else
0 commit comments