From f47f58bcee3107dddb1f857f5dd831dfe0a1417b Mon Sep 17 00:00:00 2001 From: niuhuan Date: Tue, 2 Apr 2024 13:36:48 +0800 Subject: [PATCH] :construction_worker: map build condition --- .github/workflows/Package.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/Package.yml b/.github/workflows/Package.yml index 33baab6..d60fa82 100644 --- a/.github/workflows/Package.yml +++ b/.github/workflows/Package.yml @@ -2,20 +2,18 @@ name: Package on: workflow_dispatch: inputs: - package-ios: + PACKAGE_IOS: type: boolean default: false description: 'iOS version' required: true - package-android: + PACKAGE_ANDROID: type: boolean default: false description: 'Android version' required: true env: - PACKAGE_IOS: ${{ github.event.inputs.message }} - PACKAGE_ANDROID: ${{ github.event.inputs.message }} FLUTTER_VERSION: '3.7.3' GO_VERSION: '1.18' @@ -34,7 +32,7 @@ jobs: - name: need_build id: need_build run: | - if [ ${{ matrix.config.target }} == 'android' ] && [ ${{ env.PACKAGE_ANDROID }} == 'true' ]; then + if [ '${{ matrix.config.target }}' == 'android' ] && [ ${{ ${{ github.event.inputs.PACKAGE_IOS }}.PACKAGE_ANDROID }} == 'true' ]; then echo "::set-output name=need_build::true" elif [ ${{ matrix.config.target }} == 'ios' ] && [ ${{ env.PACKAGE_IOS }} == 'true' ]; then echo "::set-output name=need_build::true"