File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 18
18
with :
19
19
ssh-private-key : ${{ secrets.BOT_SSH_PRIVATE_KEY }}
20
20
21
+ with :
22
+ fetch-depth : 0
21
23
- name : Extract version from branch name (for release branches)
22
24
if : startsWith(github.event.pull_request.head.ref, 'release/')
23
25
run : |
Original file line number Diff line number Diff line change @@ -109,6 +109,8 @@ lane :publish_release do |options|
109
109
)
110
110
111
111
update_spm ( version : options [ :version ] )
112
+
113
+ merge_main_to_develop
112
114
end
113
115
114
116
lane :merge_release_to_main do
@@ -135,8 +137,11 @@ lane :merge_main_to_develop do
135
137
ensure_git_status_clean
136
138
end
137
139
138
- sh ( 'git checkout main && git pull' )
139
- sh ( 'git checkout develop && git pull' )
140
+ sh ( 'git checkout main' )
141
+ sh ( 'git pull origin main' )
142
+ sh ( 'git checkout develop' )
143
+ sh ( 'git pull origin develop' )
144
+ sh ( 'git log develop..main' )
140
145
sh ( 'git merge main' )
141
146
sh ( 'git push' )
142
147
end
You can’t perform that action at this time.
0 commit comments