From 9a86a18372452d9612fc0694dfbcd88cd6e4f0d7 Mon Sep 17 00:00:00 2001 From: Roman Gardukevich Date: Thu, 25 Jan 2024 14:17:27 +0200 Subject: [PATCH] Add more parameters to reusable workflow --- .github/workflows/analyze.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/analyze.yml b/.github/workflows/analyze.yml index 63e2f45dba21..275c44a43d10 100644 --- a/.github/workflows/analyze.yml +++ b/.github/workflows/analyze.yml @@ -4,6 +4,14 @@ on: project-path: required: true type: string + scheme: + required: true + type: string + default: MapboxMaps + destination: + required: true + type: string + default: generic/platform=iOS Simulator jobs: analyze: @@ -54,7 +62,7 @@ jobs: - name: Build Examples if: matrix.language == 'swift' - run: set -o pipefail && xcodebuild build -project '${{ inputs.project-path }}' -scheme MapboxMaps -destination 'generic/platform=iOS Simulator'| tee xcodebuild.log | xcpretty + run: set -o pipefail && xcodebuild build -project '${{ inputs.project-path }}' -scheme ${{ inputs.scheme }} -destination '${{ inputs.destination }}'| tee xcodebuild.log | xcpretty - name: Archive xcodebuild.log uses: actions/upload-artifact@v4