File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change
1
+ name : rebase-v2-on-main
2
+
1
3
on :
2
4
push :
3
5
branches :
6
8
workflow_dispatch :
7
9
8
10
env :
9
- VSTEST_CONNECTION_TIMEOUT : 180
10
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE : 1
11
- DOTNET_NOLOGO : true
12
- DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION : 1
13
11
TERM : xterm
14
12
15
13
jobs :
@@ -38,16 +36,16 @@ jobs:
38
36
git config --global user.signingkey ${{ steps.import_gpg.outputs.keyid }}
39
37
git config --global commit.gpgsign true
40
38
41
- - name : ⏩ Merge stable with main, push to origin
39
+ - name : ⏩ Rebase v2 on main, push to origin
42
40
id : rebaseV2
43
41
continue-on-error : true
44
42
run : |
43
+ git fetch --all
45
44
git checkout v2
46
- git fetch
47
- git rebase origin/main
48
- git push origin v2
45
+ git rebase -S main
46
+ git push --force-with-lease
49
47
50
- - name : ⏭ Create pull request from main to v2 when direct rebase fails
48
+ - name : ⏭ Create pull request
51
49
if : steps.rebaseV2.outcome == 'failure'
52
50
uses :
thomaseizinger/[email protected]
53
51
env :
56
54
head : main
57
55
base : v2
58
56
title : Rebase v2 on main
57
+ body : |
58
+ This PR is created automatically by the bUnit bot.
59
+
60
+ When completing this PR, it's important to use **Rebase and merge** to keep the commit history clean.
You can’t perform that action at this time.
0 commit comments