Reuse $PLATFORMS in CI

This commit is contained in:
Davide 2024-12-20 21:02:48 +01:00
parent 59e4e2e4ab
commit 46d236cb5e
No known key found for this signature in database
GPG Key ID: A48836171C759F5E

View File

@ -12,6 +12,7 @@ env:
FASTLANE_PASSWORD: ${{ secrets.FASTLANE_PASSWORD }} FASTLANE_PASSWORD: ${{ secrets.FASTLANE_PASSWORD }}
TESTFLIGHT_PREFACE: ${{ vars.TESTFLIGHT_PREFACE }} TESTFLIGHT_PREFACE: ${{ vars.TESTFLIGHT_PREFACE }}
XCODEPROJ: "Passepartout.xcodeproj/project.pbxproj" XCODEPROJ: "Passepartout.xcodeproj/project.pbxproj"
PLATFORMS: "iOS macOS tvOS"
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
@ -83,7 +84,6 @@ jobs:
PILOT_GROUPS: ${{ vars.PILOT_GROUPS }} PILOT_GROUPS: ${{ vars.PILOT_GROUPS }}
PILOT_NOTIFY_EXTERNAL_TESTERS: ${{ vars.PILOT_NOTIFY_EXTERNAL_TESTERS }} PILOT_NOTIFY_EXTERNAL_TESTERS: ${{ vars.PILOT_NOTIFY_EXTERNAL_TESTERS }}
run: | run: |
PLATFORMS=("iOS" "macOS" "tvOS")
for PLATFORM in ${PLATFORMS[@]}; do for PLATFORM in ${PLATFORMS[@]}; do
bundle exec fastlane --env $PLATFORM public_beta bundle exec fastlane --env $PLATFORM public_beta
done done
@ -104,7 +104,6 @@ jobs:
bundler-cache: true bundler-cache: true
- name: Submit for App Review - name: Submit for App Review
run: | run: |
PLATFORMS=("iOS" "macOS" "tvOS")
for PLATFORM in ${PLATFORMS[@]}; do for PLATFORM in ${PLATFORMS[@]}; do
bundle exec fastlane --env $PLATFORM asc_review bundle exec fastlane --env $PLATFORM asc_review
done done