23
23
build_tools :
24
24
name : build-tools-${{ matrix.tools_platform }}
25
25
runs-on : ${{ matrix.os }}
26
- if : ( ${{ github.event.inputs.downloadPublicVersion == '' }}) && (${{ github.event.inputs.downloadPreviousRun == '' }})
26
+ if : ${{ github.event.inputs.downloadPublicVersion == '' && github.event.inputs.downloadPreviousRun == '' }}
27
27
strategy :
28
28
matrix :
29
29
os : [ubuntu-latest, macos-latest]
83
83
build_and_package_ios :
84
84
name : build-and-package-ios
85
85
runs-on : macos-latest
86
- if : ( ${{ github.event.inputs.downloadPublicVersion == '' }}) && (${{ github.event.inputs.downloadPreviousRun == '' }})
86
+ if : ${{ github.event.inputs.downloadPublicVersion == '' && github.event.inputs.downloadPreviousRun == '' }}
87
87
steps :
88
88
- name : fetch SDK
89
89
@@ -120,7 +120,7 @@ jobs:
120
120
build_and_package_android :
121
121
name : build-and-package-android-${{matrix.stl}}
122
122
runs-on : ubuntu-latest
123
- if : ( ${{ github.event.inputs.downloadPublicVersion == '' }}) && (${{ github.event.inputs.downloadPreviousRun == '' }})
123
+ if : ${{ github.event.inputs.downloadPublicVersion == '' && github.event.inputs.downloadPreviousRun == '' }}
124
124
strategy :
125
125
fail-fast : false
126
126
matrix :
@@ -161,7 +161,7 @@ jobs:
161
161
build_desktop :
162
162
name : build-${{ matrix.sdk_platform }}-${{ matrix.architecture }}-${{ matrix.build_type }}-${{ matrix.linkage }}
163
163
runs-on : ${{ matrix.os }}
164
- if : ( ${{ github.event.inputs.downloadPublicVersion == '' }}) && (${{ github.event.inputs.downloadPreviousRun == '' }})
164
+ if : ${{ github.event.inputs.downloadPublicVersion == '' && github.event.inputs.downloadPreviousRun == '' }}
165
165
strategy :
166
166
fail-fast : false
167
167
matrix :
@@ -292,7 +292,7 @@ jobs:
292
292
name : package-${{ matrix.sdk_platform }}${{ matrix.suffix }}
293
293
runs-on : ${{ matrix.runs_on_platform }}
294
294
needs : [build_tools, build_desktop]
295
- if : ( ${{ github.event.inputs.downloadPublicVersion == '' }}) && (${{ github.event.inputs.downloadPreviousRun == '' }})
295
+ if : ${{ github.event.inputs.downloadPublicVersion == '' && github.event.inputs.downloadPreviousRun == '' }}
296
296
strategy :
297
297
fail-fast : false
298
298
matrix :
@@ -389,19 +389,19 @@ jobs:
389
389
download_sdk_package :
390
390
name : download-sdk-package
391
391
runs-on : ubuntu-latest
392
- if : ( ${{ github.event.inputs.downloadPublicVersion != '' }}) || (${{ github.event.inputs.downloadPreviousRun != '' }})
392
+ if : ${{ github.event.inputs.downloadPublicVersion != '' || github.event.inputs.downloadPreviousRun != '' }}
393
393
steps :
394
394
- name : fetch artifact from previous run
395
395
uses : dawidd6/action-download-artifact@v2
396
- if : ( ${{ github.event.inputs.downloadPreviousRun != '' }})
396
+ if : ${{ github.event.inputs.downloadPreviousRun != '' }}
397
397
with :
398
398
name : ' firebase_cpp_sdk'
399
399
path : ' firebase-cpp-sdk-final'
400
400
workflow : ' cpp-packaging.yml'
401
401
run_id : ${{ github.event.inputs.downloadPreviousRun }}
402
402
403
403
- name : fetch public SDK package from web
404
- if : ( ${{ github.event.inputs.downloadPublicVersion != '' }}) && (${{ github.event.inputs.downloadPreviousRun == '' }})
404
+ if : ${{ github.event.inputs.downloadPublicVersion != '' && github.event.inputs.downloadPreviousRun == '' }}
405
405
run : |
406
406
if [[ ! "${{ github.event.inputs.downloadPublicVersion }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
407
407
echo Invalid version number: "${{ github.event.inputs.downloadPublicVersion }}"
@@ -428,7 +428,7 @@ jobs:
428
428
merge_packages :
429
429
name : final-merge-packages
430
430
runs-on : ubuntu-latest
431
- if : ${{ github.event.inputs.downloadPublicVersion == '' }}
431
+ if : ${{ github.event.inputs.downloadPublicVersion == '' && github.event.inputs.downloadPreviousRun == '' }}
432
432
needs : [build_and_package_ios, build_and_package_android, package_desktop]
433
433
steps :
434
434
- name : fetch SDK
@@ -469,7 +469,7 @@ jobs:
469
469
name : cleanup-artifacts
470
470
runs-on : ubuntu-latest
471
471
needs : [merge_packages]
472
- if : ( ${{ github.event.inputs.preserveIntermediateArtifacts == 0 }}) && (${{ github.event.inputs.downloadPublicVersion == '' }}) && (${{ github.event.inputs.downloadPreviousRun == '' }})
472
+ if : ${{ github.event.inputs.preserveIntermediateArtifacts == 0 && github.event.inputs.downloadPublicVersion == '' && github.event.inputs.downloadPreviousRun == '' }}
473
473
steps :
474
474
- uses : geekyeggo/delete-artifact@v1
475
475
with :
0 commit comments