File tree Expand file tree Collapse file tree 2 files changed +16
-11
lines changed Expand file tree Collapse file tree 2 files changed +16
-11
lines changed Original file line number Diff line number Diff line change 15
15
patch_version :
16
16
description : " Patch Version Override - e.g. '999'"
17
17
type : string
18
- ditribute :
18
+ distribute :
19
19
description : " Distribute to TestFlight"
20
20
type : boolean
21
- default : false
22
21
env :
23
22
XCODE_VERSION : ' 15.4'
24
23
DISTRIBUTE_TO_TESTFLIGHT : ${{ github.event_name == 'push' || inputs.distribute }}
25
24
jobs :
26
25
resolve-values :
27
26
name : " Resolve values"
28
- runs-on : macos-14
27
+ runs-on : ubuntu-latest
29
28
outputs :
30
29
version_name : ${{ steps.version_info.outputs.version_name }}
31
30
version_number : ${{ steps.version_info.outputs.version_number }}
31
+ xcode_version : ${{ env.XCODE_VERSION }}
32
+ distribute_to_testflight : ${{ env.DISTRIBUTE_TO_TESTFLIGHT }}
32
33
steps :
33
34
- name : Log inputs to job summary
34
35
run : |
@@ -80,14 +81,15 @@ jobs:
80
81
build :
81
82
name : Build
82
83
needs : resolve-values
83
- uses : bitwarden/ios/.github/workflows/build.yml@main
84
+ uses : bitwarden/ios/.github/workflows/build.yml@ci-version-name
84
85
strategy :
85
86
matrix :
86
87
variant : [Beta, Production]
87
88
with :
88
89
build-variant : ${{ matrix.variant }}
89
90
build-version : ${{ needs.resolve-values.outputs.version_name }}
90
91
build-number : ${{ needs.resolve-values.outputs.version_number }}
91
- xcode-version : $XCODE_VERSION
92
- distribute : $DISTRIBUTE_TO_TESTFLIGHT
92
+ xcode-version : ${{ needs.resolve-values.outputs.xcode_version }}
93
+ distribute : ${{ fromJSON(needs.resolve-values.outputs.distribute_to_testflight) }}
94
+ upload_version_info : false
93
95
secrets : inherit
Original file line number Diff line number Diff line change 31
31
patch_version :
32
32
description : " Patch Version Override - e.g. '999'"
33
33
type : string
34
- ditribute :
34
+ distribute :
35
35
description : " Distribute to TestFlight"
36
36
type : boolean
37
- default : false
37
+ default : true
38
38
workflow_call :
39
39
inputs :
40
40
build-variant :
59
59
patch_version :
60
60
description : " Patch Version Override - e.g. '999'"
61
61
type : string
62
- ditribute :
62
+ distribute :
63
63
description : " Distribute to TestFlight"
64
64
type : boolean
65
- default : false
65
+ upload_version_info :
66
+ description : " Upload version-info file - When false, caller may be handling it already"
67
+ type : boolean
66
68
env :
67
69
BUILD_VARIANT : ${{ inputs.build-variant || 'Beta' }}
68
70
XCODE_VERSION : ${{ inputs.xcode-version || '15.4' }}
@@ -125,6 +127,7 @@ jobs:
125
127
echo "version_name=$(echo $content | jq -r .version_name)" >> $GITHUB_OUTPUT
126
128
echo "version_number=$(echo $content | jq -r .version_number)" >> $GITHUB_OUTPUT
127
129
- name : Upload version info artifact
130
+ if : ${{ inputs.upload_version_info }}
128
131
uses : actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
129
132
with :
130
133
name : version-info
@@ -358,7 +361,7 @@ jobs:
358
361
--apiIssuer "${{ secrets.APP_STORE_CONNECT_TEAM_ISSUER }}"
359
362
360
363
- name : Upload app to TestFlight with Fastlane
361
- if : ${{ inputs.ditribute }}
364
+ if : ${{ inputs.distribute }}
362
365
run : |
363
366
CHANGELOG="$(git show -s --format=%s)
364
367
$GITHUB_REPOSITORY/$GITHUB_REF_NAME @ $GITHUB_SHA
You can’t perform that action at this time.
0 commit comments