File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ name : linearize_main
2+
3+ on :
4+ schedule :
5+ # GMT timezone.
6+ - cron : ' 0 10 * * *'
7+ workflow_dispatch :
8+
9+ permissions : read-all
10+
11+ jobs :
12+ trigger_linearize :
13+ runs-on : ubuntu-latest
14+ permissions :
15+ contents : write
16+ steps :
17+ - name : Checkout main
18+ uses : actions/checkout@v4
19+ with :
20+ ref : main
21+ - name : Checkout rebase_tools
22+ uses : actions/checkout@v4
23+ with :
24+ ref : experimental/rebase_tools
25+ - uses : actions/setup-python@v5
26+ with :
27+ python-version : ' 3.9'
28+ cache : ' pip'
29+ - name : Install rebase_tools
30+ run : |
31+ set -eux
32+ pip install -r requirements.txt
33+ - name : Run linearize
34+ run : |
35+ set -eux
36+ # m114 merge commit=38a06fe8674ad2140ff85c87b5b3a817304e369a
37+ export REV=$(git rev-parse main)
38+ echo $REV
39+ python main.py linearize --repo-path=${GITHUB_WORKSPACE} --source-branch=main --new-branch-name=feature/linear_main \
40+ --start-commit-ref=38a06fe8674ad2140ff85c87b5b3a817304e369a --end-commit-ref=${REV}
41+ - name : Checkout feature/linear_main
42+ uses : actions/checkout@v4
43+ with :
44+ ref : feature/rebase_tools
45+ # - name: Push to origin feature/linear_main
46+ # run: |
47+ # set -eux
48+ # git push --force origin feature/linear_main
49+
You can’t perform that action at this time.
0 commit comments