Skip to content

Commit

Permalink
👷 map build condition
Browse files Browse the repository at this point in the history
  • Loading branch information
niuhuan committed Apr 2, 2024
1 parent a7ecfbd commit f47f58b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/Package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand All @@ -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"
Expand Down

0 comments on commit f47f58b

Please sign in to comment.