|
10 | 10 | options: |
11 | 11 | - testflight |
12 | 12 | - production |
13 | | - assignTestFlightGroup: |
14 | | - type: boolean |
15 | | - description: Assign the build to the "QA Team" TestFlight group after submitting |
16 | | - default: false |
| 13 | + testFlightGroup: |
| 14 | + type: choice |
| 15 | + description: TestFlight group to assign the build to after submitting |
| 16 | + options: |
| 17 | + - none |
| 18 | + - QA Team |
| 19 | + - Software Mansion |
| 20 | + default: none |
17 | 21 | workflow_call: |
18 | 22 | inputs: |
19 | 23 | profile: |
20 | 24 | type: string |
21 | 25 | description: Build profile to use |
22 | 26 | required: true |
23 | | - assignTestFlightGroup: |
24 | | - type: boolean |
25 | | - description: Assign the build to the "QA Team" TestFlight group after submitting |
26 | | - default: false |
| 27 | + testFlightGroup: |
| 28 | + type: string |
| 29 | + description: TestFlight group to assign the build to after submitting ("none" to skip) |
| 30 | + default: none |
27 | 31 | outputs: |
28 | 32 | package-version: |
29 | 33 | description: Version from package.json |
|
56 | 60 | fi |
57 | 61 |
|
58 | 62 | - name: ⬇️ Checkout |
59 | | - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 |
| 63 | + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 |
60 | 64 | with: |
61 | 65 | fetch-depth: 5 |
62 | 66 |
|
@@ -212,8 +216,9 @@ jobs: |
212 | 216 | # TestFlight group. fastlane's distribute_only mode skips the upload and assigns the |
213 | 217 | # already-submitted build to the group, polling until Apple finishes processing it. |
214 | 218 | - name: 🧪 Assign build to TestFlight group |
215 | | - if: ${{ inputs.assignTestFlightGroup }} |
| 219 | + if: ${{ inputs.testFlightGroup != 'none' }} |
216 | 220 | env: |
| 221 | + TESTFLIGHT_GROUP: ${{ inputs.testFlightGroup }} |
217 | 222 | ASC_KEY_ID: ${{ secrets.ASC_KEY_ID }} |
218 | 223 | ASC_ISSUER_ID: ${{ secrets.ASC_ISSUER_ID }} |
219 | 224 | ASC_KEY_P8_BASE64: ${{ secrets.ASC_KEY_P8_BASE64 }} |
@@ -241,7 +246,7 @@ jobs: |
241 | 246 | app_identifier:"xyz.blueskyweb.app" \ |
242 | 247 | app_version:"$APP_VERSION" \ |
243 | 248 | build_number:"$BUILD_NUMBER" \ |
244 | | - groups:"QA Team" \ |
| 249 | + groups:"$TESTFLIGHT_GROUP" \ |
245 | 250 | notify_external_testers:true |
246 | 251 |
|
247 | 252 | - name: 🔔 Notify Slack of Production Build |
|
0 commit comments