@@ -29,26 +29,26 @@ jobs:
2929 run : |
3030 # The merge-train branch is the PR’s *head* branch (e.g. merge-train/main)
3131 MERGE_TRAIN_BRANCH="${{ github.event.pull_request.head.ref }}"
32- BASE_BRANCH="${{ github.event.pull_request.base.ref }}"
32+ BASE_BRANCH="${{ github.event.pull_request.base.ref }}"
3333
3434 # Make sure a merge commit gets into master.
3535 git fetch origin "$BASE_BRANCH"
36- git checkout "$BASE_BRANCH"
36+ git checkout "$BASE_BRANCH"
3737 git merge -X ours "$MERGE_TRAIN_BRANCH" -m "Merge $MERGE_TRAIN_BRANCH history."
38- git push origin "$BASE_BRANCH"
38+ git push origin "$BASE_BRANCH"
3939
4040 git fetch origin "$MERGE_TRAIN_BRANCH" || true
4141 git checkout "$MERGE_TRAIN_BRANCH" || git checkout -b "$MERGE_TRAIN_BRANCH"
4242 git reset --hard "$BASE_BRANCH"
4343
44- # Start with an empty commit
44+ # Start with an empty commit
4545 git commit --allow-empty -m "[empty] Start merge-train. Choo choo."
4646
4747 # Push & open the PR
48- git push origin "$NEW_BRANCH "
48+ git push origin "$MERGE_TRAIN_BRANCH "
4949
5050 gh pr create \
51- --base "$MERGE_TRAIN_BRANCH " \
52- --head "$NEW_BRANCH " \
51+ --base "$BASE_BRANCH " \
52+ --head "$MERGE_TRAIN_BRANCH " \
5353 --title "feat: $MERGE_TRAIN_BRANCH" \
5454 --body "This is an automated merge-train PR with no commits."
0 commit comments