From 9e1fc1fef92f6240c161a448a6e1481d73df71a6 Mon Sep 17 00:00:00 2001 From: Andi Date: Tue, 19 Sep 2023 16:33:29 +0200 Subject: [PATCH] Add ability to specify PAT and submodule inputs for checkout action (#29) --- .github/workflows/xcodebuild-or-fastlane.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/xcodebuild-or-fastlane.yml b/.github/workflows/xcodebuild-or-fastlane.yml index 6be44c0..19b10da 100644 --- a/.github/workflows/xcodebuild-or-fastlane.yml +++ b/.github/workflows/xcodebuild-or-fastlane.yml @@ -81,6 +81,10 @@ on: required: false type: boolean default: false + checkout_submodules: + description: "Flag indicating if submodules should be automatically checked out." + required: false + type: boolean secrets: BUILD_CERTIFICATE_BASE64: description: 'The Base64 version of the Apple signing certificate to build your iOS application.' @@ -106,6 +110,9 @@ on: APPLE_ID: description: 'The Apple ID you use to access the App Store Connect API.' required: false + checkout_token: + description: "The Personal access token (PAT) to use with the checkout action" + required: false jobs: build_and_test: @@ -115,7 +122,10 @@ jobs: run: working-directory: ${{ inputs.path }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + with: + token: ${{ secrets.checkout_token }} + submodules: ${{ inputs.checkout_submodules }} - uses: maxim-lobanov/setup-xcode@v1 with: xcode-version: ${{ inputs.xcodeversion }}