File tree Expand file tree Collapse file tree 2 files changed +9
-18
lines changed Expand file tree Collapse file tree 2 files changed +9
-18
lines changed Original file line number Diff line number Diff line change 7
7
types :
8
8
- closed
9
9
10
- workflow_dispatch :
11
- inputs :
12
- version :
13
- description : ' Provide release version'
14
- type : string
15
- required : true
16
-
17
10
jobs :
18
11
release :
19
12
name : Publish new release
20
13
runs-on : macos-13
21
- if : github.event_name == 'workflow_dispatch' || startsWith(github.event.pull_request.head.ref, 'release/')
14
+ if : github.event.pull_request.merged == true # only merged pull requests must trigger this job
22
15
steps :
23
16
- name : Install Bot SSH Key
24
17
uses :
webfactory/[email protected]
25
18
with :
26
19
ssh-private-key : ${{ secrets.BOT_SSH_PRIVATE_KEY }}
27
20
28
21
- name : Extract version from branch name (for release branches)
22
+ if : startsWith(github.event.pull_request.head.ref, 'release/')
29
23
run : |
30
- if [[ "${{ github.event.inputs.version }}" != "" ]]; then
31
- echo "RELEASE_VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV
32
- else
33
- BRANCH_NAME="${{ github.event.pull_request.head.ref }}"
34
- VERSION=${BRANCH_NAME#release/}
35
- echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
36
- fi
24
+ BRANCH_NAME="${{ github.event.pull_request.head.ref }}"
25
+ VERSION=${BRANCH_NAME#release/}
26
+ echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
37
27
- uses : ./.github/actions/ruby-cache
38
28
- name : " Fastlane - Publish Release"
29
+ if : startsWith(github.event.pull_request.head.ref, 'release/')
39
30
env :
40
31
GITHUB_TOKEN : ${{ secrets.CI_BOT_GITHUB_TOKEN }}
41
32
COCOAPODS_TRUNK_TOKEN : ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ source_packages_path = 'spm_cache'
16
16
buildcache_xcargs = 'CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++'
17
17
is_localhost = !is_ci
18
18
@force_check = false
19
- develop_branch = 'main'
20
19
21
20
before_all do |lane |
22
21
if is_ci
@@ -90,6 +89,7 @@ lane :publish_release do |options|
90
89
clean_products
91
90
92
91
publish_ios_sdk (
92
+ skip_git_status_check : false ,
93
93
version : options [ :version ] ,
94
94
sdk_names : sdk_names ,
95
95
podspec_names : [ 'StreamChatSwiftUI' , 'StreamChatSwiftUI-XCFramework' ] ,
208
208
209
209
desc 'Runs e2e ui tests using mock server in Debug config'
210
210
lane :test_e2e_mock do |options |
211
- # next unless is_check_required(sources: sources_matrix[:e2e], force_check: @force_check) # TESTING THIS NOW
211
+ next unless is_check_required ( sources : sources_matrix [ :e2e ] , force_check : @force_check )
212
212
213
213
start_sinatra
214
214
@@ -434,7 +434,7 @@ lane :copyright do
434
434
end
435
435
436
436
private_lane :create_pr do |options |
437
- options [ :base_branch ] ||= develop_branch
437
+ options [ :base_branch ] ||= 'develop'
438
438
sh ( "git checkout -b #{ options [ :head_branch ] } " )
439
439
sh ( 'git add -A' )
440
440
sh ( "git commit -m '#{ options [ :title ] } '" )
You can’t perform that action at this time.
0 commit comments