From 99fdcf83877a80cddd2ac05efd0fca325338f6b6 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Thu, 19 Feb 2026 14:43:27 -0500 Subject: [PATCH] ci: fixes branch creation when a PR does not already exist Signed-off-by: Vincent Biret --- .github/workflows/promote-shipped-apis.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/promote-shipped-apis.yml b/.github/workflows/promote-shipped-apis.yml index 3e18427b0..e20ae60b6 100644 --- a/.github/workflows/promote-shipped-apis.yml +++ b/.github/workflows/promote-shipped-apis.yml @@ -95,7 +95,7 @@ jobs: $branch = "${{ github.ref_name }}" $prBranch = "promote-shipped-apis-$branch" - git push origin $prBranch + git push -u origin HEAD:$prBranch - name: Create new PR if: steps.check_pr.outputs.pr_exists == 'false' && steps.check_changes.outputs.has_changes == 'true' @@ -107,8 +107,5 @@ jobs: $prBranch = "promote-shipped-apis-$branch" $title = "automatic promotion of shipped APIs for $branch" - git checkout -b $prBranch - git push origin $prBranch - gh pr create --title "$title" --base "$branch" --head "$prBranch" --body "Automatically promotes unshipped APIs to shipped after running the promotion script."