fix: avoid invoking onCompletion handler twice for non-service errors #159
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | Amplify UI Swift Liveness | |
on: | |
workflow_call: | |
inputs: | |
identifier: | |
required: true | |
type: string | |
workflow_dispatch: | |
push: | |
branches-ignore: | |
- main | |
- release | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ inputs.identifier || github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: ${{ github.ref_name != 'main'}} | |
jobs: | |
build-amplify-ui-swift-liveness: | |
runs-on: macos-latest | |
timeout-minutes: 20 | |
steps: | |
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 #v3.5.3 | |
with: | |
persist-credentials: false | |
- name: Build Amplify Swift Liveness UI | |
uses: ./.github/composite_actions/run_xcodebuild | |
with: | |
scheme: FaceLiveness | |
destination: 'platform=iOS Simulator,name=iPhone 16 Pro Max,OS=18.5' | |
confirm-pass: | |
runs-on: ubuntu-latest | |
name: Confirm Passing Build Steps | |
if: ${{ !cancelled() }} | |
needs: [ build-amplify-ui-swift-liveness ] | |
env: | |
EXIT_CODE: ${{ contains(needs.*.result, 'failure') && 1 || 0 }} | |
steps: | |
- run: exit $EXIT_CODE | |