Skip to content

Commit f3aae0e

Browse files
committed
Linear main: WIP
Change-Id: I0cbbc8c47e2d97c8a312f924149bca40748e1de1
1 parent ae74e35 commit f3aae0e

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/linearize_main.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
with:
2020
ref: main
2121
fetch-tags: true
22-
fetch-depth: 0
22+
fetch-depth: 10
2323
- name: Checkout rebase_tools
2424
uses: actions/checkout@v4
2525
with:
@@ -40,7 +40,7 @@ jobs:
4040
run: |
4141
set -eux
4242
python main.py linearize --repo-path=${GITHUB_WORKSPACE} --source-branch=main --new-branch-name=automated/linear_main \
43-
--start-commit-ref="$(git rev-parse --verify post-chrobalt-tag)" --end-commit-ref="$(git rev-parse --verify origin/main)"
43+
--start-commit-ref=8ec342e9694b90e7915e49cd6f5de3235952aea3 --end-commit-ref="$(git rev-parse --verify origin/main)"
4444
- name: Update automated/linear_main and commit map, extract m114 commits
4545
run: |
4646
set -eux
@@ -53,11 +53,10 @@ jobs:
5353
5454
# Create new commits json for m114
5555
python main.py commits --repo-path=${GITHUB_WORKSPACE} --source-branch=origin/automated/linear_main \
56-
--start-commit-ref="$(git rev-parse --verify post-chrobalt-tag)" --end-commit-ref="$(git rev-parse --verify origin/automated/linear_main)" \
56+
--start-commit-ref=8ec342e9694b90e7915e49cd6f5de3235952aea3 --end-commit-ref="$(git rev-parse --verify origin/automated/linear_main)" \
5757
--output-file=${GITHUB_WORKSPACE}/automated_commits_m114.json
5858
git add automated_commits_m114.json
5959
git commit -m "Linearization refresh on $(date +'%Y-%m-%d')."
60-
export CP_COMMIT="$(git rev-parse --verify HEAD)"
61-
git checkout experimental/rebase_tools
62-
git cherry-pick --strategy=recursive -X theirs $CP_COMMIT
63-
git push --force origin experimental/rebase_tools:experimental/rebase_tools
60+
export AUTOMATEED_COMMIT="$(git rev-parse --verify HEAD)"
61+
git branch temporary $AUTOMATEED_COMMIT
62+
git push --force origin temporary:experimental/rebase_tools

0 commit comments

Comments
 (0)