File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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+ fetch-depth : 0
22+ - name : Checkout rebase_tools
23+ uses : actions/checkout@v4
24+ with :
25+ ref : experimental/rebase_tools
26+ - uses : actions/setup-python@v5
27+ with :
28+ python-version : ' 3.9'
29+ cache : ' pip'
30+ - name : Install rebase_tools
31+ run : |
32+ set -eux
33+ pip install -r requirements.txt
34+ - name : Run linearize
35+ run : |
36+ set -eux
37+ # m114 merge commit=38a06fe8674ad2140ff85c87b5b3a817304e369a
38+ export REV=$(git rev-parse origin/main)
39+ echo $REV
40+ python main.py linearize --repo-path=${GITHUB_WORKSPACE} --source-branch=main --new-branch-name=feature/linear_main \
41+ --start-commit-ref=38a06fe8674ad2140ff85c87b5b3a817304e369a --end-commit-ref=${REV}
42+ # - name: Push to origin feature/linear_main
43+ # run: |
44+ # set -eux
45+ # git push --force origin feature/linear_main
46+
You can’t perform that action at this time.
0 commit comments