From 9d8040b5205761e0eab22d106654d49c412e0bc5 Mon Sep 17 00:00:00 2001 From: niuhuan Date: Tue, 2 Apr 2024 13:42:19 +0800 Subject: [PATCH] :construction_worker: map build condition --- .github/workflows/Package.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/Package.yml b/.github/workflows/Package.yml index c0043fe..837b9b5 100644 --- a/.github/workflows/Package.yml +++ b/.github/workflows/Package.yml @@ -34,16 +34,11 @@ jobs: run: | if [ '${{ matrix.config.target }}' == 'android' ] && [ ${{ github.event.inputs.PACKAGE_ANDROID }} == 'true' ]; then echo "::set-output name=need_build::true" - elif [ ${{ matrix.config.target }} == 'ios' ] && [ ${{ env.PACKAGE_IOS }} == 'true' ]; then + elif [ ${{ matrix.config.target }} == 'ios' ] && [ ${{ github.event.inputs.PACKAGE_IOS }} == 'true' ]; then echo "::set-output name=need_build::true" else echo "::set-output name=need_build::false" fi - - if: steps.need_build.outputs.need_build == 'true' - name: Set-Version (All) - run: | - cd ci - cp version.code.txt ../lib/assets/version.txt - if: steps.need_build.outputs.need_build == 'true' name: Setup flutter uses: subosito/flutter-action@v2 @@ -74,6 +69,11 @@ jobs: repository: 'niuhuan/pikapika-go-core' token: ${{ secrets.GH_TOKEN }} path: 'go' + - if: steps.need_build.outputs.need_build == 'true' + name: Set-Version (All) + run: | + cd ci + cp version.code.txt ../lib/assets/version.txt - if: steps.need_build.outputs.need_build == 'true' name: Install go mobile (mobile) run: |