Skip to content

Commit ee700c5

Browse files
authored
Use vars in ui-tests-common.yml run commands (#5502)
1 parent 25f2d2c commit ee700c5

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/ui-tests-common.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ jobs:
5656
with:
5757
bundler-cache: true
5858

59-
- run: ./scripts/ci-select-xcode.sh ${{ inputs.xcode_version }}
59+
- name: Select Xcode version
60+
run: ./scripts/ci-select-xcode.sh "$XCODE_VERSION"
61+
env:
62+
XCODE_VERSION: ${{ inputs.xcode_version }}
6063

6164
- run: make init-ci-build
6265
if: ${{ inputs.build_with_make }}
@@ -80,7 +83,15 @@ jobs:
8083
unzip -o Carthage/Sentry.xcframework.zip -d Carthage/
8184
8285
- name: Run Fastlane
83-
run: bundle exec fastlane ${{ inputs.fastlane_command }} ${{ inputs.fastlane_command_extra_arguments }}
86+
env:
87+
FASTLANE_COMMAND: ${{ inputs.fastlane_command }}
88+
FASTLANE_EXTRA_ARGS: ${{ inputs.fastlane_command_extra_arguments }}
89+
run: |
90+
if [ -n "$FASTLANE_EXTRA_ARGS" ]; then
91+
bundle exec fastlane "$FASTLANE_COMMAND" "$FASTLANE_EXTRA_ARGS"
92+
else
93+
bundle exec fastlane "$FASTLANE_COMMAND"
94+
fi
8495
8596
- name: Publish Test Report
8697
uses: mikepenz/action-junit-report@a83fd2b5d58d4fc702e690c1ea688d702d28d281 # v5.6.1

0 commit comments

Comments
 (0)