@@ -46,11 +46,14 @@ jobs:
4646 steps :
4747 - name : log run inputs
4848 run : |
49- if [[ -n "${{ github.event.inputs.downloadPublicVersion } }" ]]; then
50- echo "::warning ::Downloading public SDK package from https://dl.google.com/firebase/sdk/cpp/firebase_cpp_sdk_${{ github.event.inputs.downloadPublicVersion } }.zip"
51- elif [[ -n "${{ github.event.inputs.downloadPreviousRun } }" ]]; then
52- echo "::warning ::Downloading SDK package from previous run at https://github.com/firebase/firebase-cpp-sdk/actions/runs/${{ github.event.inputs.downloadPreviousRun } }"
49+ if [[ -n "${GITHUB_EVENT_INPUTS_DOWNLOADPUBLICVERSION }" ]]; then
50+ echo "::warning ::Downloading public SDK package from https://dl.google.com/firebase/sdk/cpp/firebase_cpp_sdk_${GITHUB_EVENT_INPUTS_DOWNLOADPUBLICVERSION }.zip"
51+ elif [[ -n "${GITHUB_EVENT_INPUTS_DOWNLOADPREVIOUSRUN }" ]]; then
52+ echo "::warning ::Downloading SDK package from previous run at https://github.com/firebase/firebase-cpp-sdk/actions/runs/${GITHUB_EVENT_INPUTS_DOWNLOADPREVIOUSRUN }"
5353 fi
54+ env :
55+ GITHUB_EVENT_INPUTS_DOWNLOADPUBLICVERSION : ${{ github.event.inputs.downloadPublicVersion }}
56+ GITHUB_EVENT_INPUTS_DOWNLOADPREVIOUSRUN : ${{ github.event.inputs.downloadPreviousRun }}
5457
5558 - name : log if skipping integration tests
5659 if : |
@@ -425,10 +428,12 @@ jobs:
425428 shell : bash
426429 run : |
427430 verbose_flag=
428- if [[ -n "${{ github.event.inputs.verboseBuild }} " && "${{ github.event.inputs.verboseBuild } }" -ne 0 ]]; then
431+ if [[ -n "${GITHUB_EVENT_INPUTS_VERBOSEBUILD} " && "${GITHUB_EVENT_INPUTS_VERBOSEBUILD }" -ne 0 ]]; then
429432 verbose_flag=--verbose
430433 fi
431434 echo "VERBOSE_FLAG=${verbose_flag}" >> $GITHUB_ENV
435+ env :
436+ GITHUB_EVENT_INPUTS_VERBOSEBUILD : ${{ github.event.inputs.verboseBuild }}
432437
433438 # Run the build in the host OS default shell since Windows can't handle long path names in bash.
434439 - name : Build desktop SDK
@@ -442,7 +447,7 @@ jobs:
442447 find .. -type f -print > src_file_list.txt
443448 # Remove intermediate build files (.o and .obj) files to save space.
444449 find . -type f -name '*.o' -or -name '*.obj' -print0 | xargs -0 rm -f --
445- tar -czhf ../firebase-cpp-sdk-${{ env. SDK_NAME } }-build.tgz .
450+ tar -czhf ../firebase-cpp-sdk-${SDK_NAME}-build.tgz .
446451
447452 - name : Print built libraries
448453 shell : bash
@@ -682,19 +687,21 @@ jobs:
682687 - name : fetch public SDK package from web
683688 if : ${{ github.event.inputs.downloadPublicVersion != '' && github.event.inputs.downloadPreviousRun == '' }}
684689 run : |
685- if [[ ! "${{ github.event.inputs.downloadPublicVersion } }" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
686- echo Invalid version number: "${{ github.event.inputs.downloadPublicVersion } }"
690+ if [[ ! "${GITHUB_EVENT_INPUTS_DOWNLOADPUBLICVERSION }" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
691+ echo Invalid version number: "${GITHUB_EVENT_INPUTS_DOWNLOADPUBLICVERSION }"
687692 exit 1
688693 fi
689694 set +e
690695 # Retry up to 10 times because Curl has a tendency to timeout on
691696 # Github runners.
692697 for retry in {1..10} error; do
693698 if [[ $retry == "error" ]]; then exit 5; fi
694- curl -L https://dl.google.com/firebase/sdk/cpp/firebase_cpp_sdk_${{ github.event.inputs.downloadPublicVersion } }.zip --output firebase_cpp_sdk.zip && break
699+ curl -L https://dl.google.com/firebase/sdk/cpp/firebase_cpp_sdk_${GITHUB_EVENT_INPUTS_DOWNLOADPUBLICVERSION }.zip --output firebase_cpp_sdk.zip && break
695700 sleep 300
696701 done
697702 set -e
703+ env :
704+ GITHUB_EVENT_INPUTS_DOWNLOADPUBLICVERSION : ${{ github.event.inputs.downloadPublicVersion }}
698705
699706 - name : compute SDK hash
700707 shell : bash
@@ -879,21 +886,21 @@ jobs:
879886 USE_EXPANDED_MATRIX=0
880887 fi
881888 verbose_flag=
882- if [[ -n "${{ github.event.inputs.verboseBuild }} " && "${{ github.event.inputs.verboseBuild } }" -ne 0 ]]; then
889+ if [[ -n "${GITHUB_EVENT_INPUTS_VERBOSEBUILD} " && "${GITHUB_EVENT_INPUTS_VERBOSEBUILD }" -ne 0 ]]; then
883890 verbose_flag=-v
884891 fi
885892 set -e
886893 if [[ "${{ github.event_name }}" == "schedule" ]]; then
887894 # trigger integration tests and generate two reports for nightly workflow run: one for firestore, one for the rest.
888- python scripts/gha/trigger_workflow.py -t ${{ steps.generate-token.outputs.token } } \
895+ python scripts/gha/trigger_workflow.py -t ${STEPS_GENERATE_TOKEN_OUTPUTS_TOKEN } \
889896 -w integration_tests.yml \
890897 -p test_packaged_sdk ${{ github.run_id }} \
891898 -p use_expanded_matrix ${USE_EXPANDED_MATRIX} \
892899 -p apis "analytics,app_check,auth,database,functions,installations,messaging,remote_config,storage" \
893900 -p test_pull_request nightly-packaging \
894901 -s 10 \
895902 -A ${verbose_flag}
896- python scripts/gha/trigger_workflow.py -t ${{ steps.generate-token.outputs.token } } \
903+ python scripts/gha/trigger_workflow.py -t ${STEPS_GENERATE_TOKEN_OUTPUTS_TOKEN } \
897904 -w integration_tests.yml \
898905 -p test_packaged_sdk ${{ github.run_id }} \
899906 -p use_expanded_matrix ${USE_EXPANDED_MATRIX} \
@@ -903,13 +910,16 @@ jobs:
903910 -A ${verbose_flag}
904911 else
905912 # trigger integration tests
906- python scripts/gha/trigger_workflow.py -t ${{ steps.generate-token.outputs.token } } \
913+ python scripts/gha/trigger_workflow.py -t ${STEPS_GENERATE_TOKEN_OUTPUTS_TOKEN } \
907914 -w integration_tests.yml \
908915 -p test_packaged_sdk ${{ github.run_id }} \
909916 -p use_expanded_matrix ${USE_EXPANDED_MATRIX} \
910917 -s 10 \
911918 -A ${verbose_flag}
912919 fi
920+ env :
921+ GITHUB_EVENT_INPUTS_VERBOSEBUILD : ${{ github.event.inputs.verboseBuild }}
922+ STEPS_GENERATE_TOKEN_OUTPUTS_TOKEN : ${{ steps.generate-token.outputs.token }}
913923
914924
915925 attempt_retry :
@@ -936,8 +946,10 @@ jobs:
936946 - name : Retry failed tests
937947 run : |
938948 echo "::warning ::Attempting to retry failed jobs"
939- python scripts/gha/trigger_workflow.py -t ${{ steps.generate-token.outputs.token } } \
949+ python scripts/gha/trigger_workflow.py -t ${STEPS_GENERATE_TOKEN_OUTPUTS_TOKEN } \
940950 -w retry-test-failures.yml \
941951 -p run_id ${{ github.run_id }} \
942952 -s 10 \
943953 -A
954+ env :
955+ STEPS_GENERATE_TOKEN_OUTPUTS_TOKEN : ${{ steps.generate-token.outputs.token }}
0 commit comments