1818 uses : actions/checkout@v4
1919 with :
2020 ref : main
21- fetch-depth : 0
21+ fetch-depth : 10
2222 - name : Checkout rebase_tools
2323 uses : actions/checkout@v4
2424 with :
@@ -35,13 +35,12 @@ jobs:
3535 run : |
3636 git config --global user.name "GitHub Release Automation"
3737 git config --global user.email "[email protected] " 38- echo "REV=$(git rev-parse --verify origin/main)" >> $GITHUB_ENV
3938 - name : Run linearize
4039 run : |
4140 set -eux
4241 # m114 merge commit=38a06fe8674ad2140ff85c87b5b3a817304e369a
4342 python main.py linearize --repo-path=${GITHUB_WORKSPACE} --source-branch=main --new-branch-name=automated/linear_main \
44- --start-commit-ref=38a06fe8674ad2140ff85c87b5b3a817304e369a --end-commit-ref=${REV}
43+ --start-commit-ref=c949c7de9dca5222a7d82c437a041d8893db7cb5 --end-commit-ref="$(git rev-parse --verify origin/main)"
4544 - name : Update automated/linear_main and commit map, extract m114 commits
4645 run : |
4746 set -eux
5453
5554 # Create new commits json for m114
5655 python main.py commits --repo-path=${GITHUB_WORKSPACE} --source-branch=origin/automated/linear_main \
57- --start-commit-ref=38a06fe8674ad2140ff85c87b5b3a817304e369a --end-commit-ref=$REV --output-file=${GITHUB_WORKSPACE}/automated_commits_m114.json
58- git checkout experimental/rebase_tools
56+ --start-commit-ref=c949c7de9dca5222a7d82c437a041d8893db7cb5 --end-commit-ref="$(git rev-parse --verify origin/automated/linear_main)" \
57+ --output-file=${GITHUB_WORKSPACE}/automated_commits_m114.json
5958 git add automated_commits_m114.json
59+ git status
6060 git commit -m "Linearization refresh on $(date +'%Y-%m-%d')."
61+ export CP_COMMIT="$(git rev-parse --verify HEAD)"
62+ git checkout experimental/rebase_tools
63+ git cherry-pick --strategy=recursive -X theirs $CP_COMMIT
64+ git status
6165 git push --force origin experimental/rebase_tools:experimental/rebase_tools
0 commit comments