Skip to content

Commit 21017b5

Browse files
Copilotpetesramek
andauthored
fix: fetch target branch before gh pr create --fill in promote-branch workflow
Agent-Logs-Url: https://github.com/petesramek/polyline-algorithm-csharp/sessions/06b9a62d-ceb7-4814-abd4-5263cae5f0c5 Co-authored-by: petesramek <2333452+petesramek@users.noreply.github.com>
1 parent 0a374f4 commit 21017b5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/promote-branch.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,4 +220,5 @@ jobs:
220220
current-branch: ${{ github.ref_name }}
221221
target-branch: ${{ needs.workflow-variables.outputs.target-branch }}
222222
run: |
223+
git fetch origin ${{ env.target-branch }}
223224
gh pr create --title "Promote ${{ env.current-branch }} to ${{ env.target-branch }}" --fill --base ${{ env.target-branch }} --head ${{ env.current-branch }}

0 commit comments

Comments
 (0)