@@ -28,6 +28,7 @@ concurrency:
2828env :
2929 CHECKSUMS_FILE : checksums.yaml
3030 AUDIT_LOG_FILE : .github/audit/installer-updates.jsonl
31+ TARGET_BRANCH : local-desktop-installation-support
3132
3233permissions :
3334 contents : write
5051 - uses : actions/checkout@v4
5152 with :
5253 fetch-depth : 1
54+ ref : ${{ env.TARGET_BRANCH }}
5355
5456 - name : Install yq
5557 run : |
@@ -164,6 +166,8 @@ jobs:
164166 current_sha256 : ${{ steps.compare.outputs.current }}
165167 steps :
166168 - uses : actions/checkout@v4
169+ with :
170+ ref : ${{ env.TARGET_BRANCH }}
167171
168172 - name : Install yq
169173 run : |
@@ -301,6 +305,7 @@ jobs:
301305 - uses : actions/checkout@v4
302306 with :
303307 fetch-depth : 1
308+ ref : ${{ env.TARGET_BRANCH }}
304309
305310 - name : Install yq
306311 run : |
@@ -423,6 +428,8 @@ jobs:
423428 runs-on : ubuntu-latest
424429 steps :
425430 - uses : actions/checkout@v4
431+ with :
432+ ref : ${{ env.TARGET_BRANCH }}
426433
427434 - name : Create Pull Request
428435 env :
@@ -432,10 +439,11 @@ jobs:
432439 BRANCH_NAME="${{ needs.update-checksums.outputs.branch_name }}"
433440 SHORT_SHA="${{ needs.verify-checksum.outputs.computed_sha256 }}"
434441 SHORT_SHA=${SHORT_SHA:0:8}
442+ TARGET_BRANCH="${{ env.TARGET_BRANCH }}"
435443
436444 # Create PR
437445 gh pr create \
438- --base main \
446+ --base "$TARGET_BRANCH" \
439447 --head "$BRANCH_NAME" \
440448 --title "chore(checksums): Update $TOOL_NAME to $SHORT_SHA" \
441449 --body "${{ needs.update-checksums.outputs.pr_body }}" \
@@ -459,6 +467,8 @@ jobs:
459467 runs-on : ubuntu-latest
460468 steps :
461469 - uses : actions/checkout@v4
470+ with :
471+ ref : ${{ env.TARGET_BRANCH }}
462472
463473 - name : Install yq
464474 run : |
@@ -490,6 +500,7 @@ jobs:
490500 run : |
491501 TOOL_NAME="${{ needs.validate-dispatch.outputs.tool_name }}"
492502 SOURCE_REPO="${{ needs.validate-dispatch.outputs.source_repo }}"
503+ TARGET_BRANCH="${{ env.TARGET_BRANCH }}"
493504
494505 cat > /tmp/removal-pr-body.md << 'PREOF'
495506 ## Tool Removal: $TOOL_NAME
@@ -512,7 +523,7 @@ jobs:
512523 sed -i "s|\$SOURCE_REPO|$SOURCE_REPO|g" /tmp/removal-pr-body.md
513524
514525 gh pr create \
515- --base main \
526+ --base "$TARGET_BRANCH" \
516527 --head "auto/remove-${TOOL_NAME}" \
517528 --title "chore(checksums): Remove $TOOL_NAME" \
518529 --body-file /tmp/removal-pr-body.md \
0 commit comments