From 3820e784ee56dd215d5c1a5efba4c3d2125b804e Mon Sep 17 00:00:00 2001 From: Kyle Hekkers <51341878+List0734@users.noreply.github.com> Date: Wed, 29 Oct 2025 06:43:56 +0000 Subject: [PATCH] Update build-apple.yml --- .github/workflows/build-apple.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-apple.yml b/.github/workflows/build-apple.yml index 4faa7313..668bd61f 100644 --- a/.github/workflows/build-apple.yml +++ b/.github/workflows/build-apple.yml @@ -1,10 +1,18 @@ name: Build Apple + on: workflow_call: inputs: ref: required: true type: string + workflow_dispatch: + inputs: + ref: + description: "Branch, tag, or commit to build" + required: true + default: main + jobs: build_ios: name: iOS @@ -13,7 +21,7 @@ jobs: - name: Checkout application uses: actions/checkout@v5 with: - ref: ${{ inputs.ref }} + ref: ${{ inputs.ref || github.event.inputs.ref || 'main' }} # This seems to be related to https://github.com/actions/runner-images/issues/12758 # Select appropriate Xcode version from @@ -43,14 +51,11 @@ jobs: - name: Checkout application uses: actions/checkout@v5 with: - ref: ${{ inputs.ref }} + ref: ${{ inputs.ref || github.event.inputs.ref || 'main' }} - name: Common flutter setup uses: ./.github/actions/flutter-common - # This seems to be related to https://github.com/actions/runner-images/issues/12758 - # Select appropriate Xcode version from - # https://github.com/actions/runner-images/blob/main/images/macos/macos-15-arm64-Readme.md#xcode - name: Xcode setup run: | sudo xcode-select --switch /Applications/Xcode_16.4.app @@ -73,7 +78,7 @@ jobs: - name: Checkout application uses: actions/checkout@v5 with: - ref: ${{ inputs.ref }} + ref: ${{ inputs.ref || github.event.inputs.ref || 'main' }} - name: Common flutter setup uses: ./.github/actions/flutter-common @@ -87,4 +92,4 @@ jobs: - uses: actions/upload-artifact@v4 with: name: builds-macos - path: build/macos/Build/Products/Release/wger.app.zip \ No newline at end of file + path: build/macos/Build/Products/Release/wger.app.zip