Skip to content

Commit c864158

Browse files
committed
Create a feature branch for generated PR base
1 parent dc37e5d commit c864158

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -481,10 +481,11 @@ jobs:
481481
run: |
482482
git config --global user.name 'github-actions'
483483
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
484+
git checkout -b ${{ github.ref_name }}-update-profile
484485
git add default.pgo
485486
git commit -m "Update pgo profile -- CI Autogenerated" -- ${{ steps.artifact-upload-step.outputs.artifact-id }} || echo "No changes to commit"
486487
git log -1
487-
git push
488+
git push -u origin ${{ github.ref_name }}-update-profile
488489
489490
- name: Open Pull Request
490491
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
@@ -496,8 +497,8 @@ jobs:
496497
title: 'Update pgo profile',
497498
owner,
498499
repo,
499-
head: '${{ github.ref_name }}',
500-
base: 'main',
500+
head: '${{ github.ref_name }}-update-profile',
501+
base: '${{ github.ref_name }}',
501502
state: 'open'
502503
});
503504
if (pullRequests.length > 0) {

0 commit comments

Comments
 (0)