File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 17
17
unity_branch :
18
18
description : ' Unity branch to build against, empty means current branch'
19
19
default : ' '
20
- cpp_branch :
21
- description : ' CPP branch to build against, empty means current branch '
20
+ firebase_cpp_sdk_version :
21
+ description : ' Firebase CPP SDK version to build against (The branch, tag or SHA to checkout) '
22
22
default : ' '
23
+ required : false
23
24
24
25
jobs :
25
26
build_desktop :
58
59
repository : firebase/firebase-cpp-sdk
59
60
path : firebase-cpp-sdk
60
61
submodules : true
61
- ref : ${{ github.event.inputs.cpp_branch }}
62
+ ref : ${{ github.event.inputs.firebase_cpp_sdk_version }}
62
63
63
64
- name : Support longpaths
64
65
if : startsWith(matrix.os, 'windows')
Original file line number Diff line number Diff line change @@ -161,6 +161,14 @@ jobs:
161
161
app_id : ${{ secrets.WORKFLOW_TRIGGER_APP_ID }}
162
162
private_key : ${{ secrets.WORKFLOW_TRIGGER_APP_PRIVATE_KEY }}
163
163
164
+ - name : get latest cpp release with tag
165
+ id : cpprelease
166
+ run : |
167
+ echo "::set-output name=release_tag::$(basename $(curl --silent "https://github.com/firebase/firebase-cpp-sdk/releases/latest" grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/'))"
168
+ - name : confirm release tag
169
+ run : |
170
+ echo latest cpp release version is: ${{ steps.cpprelease.outputs.release_tag }}
171
+
164
172
- name : Use GitHub API to start workflow
165
173
shell : bash
166
174
run : |
@@ -172,4 +180,8 @@ jobs:
172
180
set -e
173
181
compose_new_branch=firebase-unity-sdk/${{ needs.update_versions.outputs.new_branch }}
174
182
echo "New branch is: ${compose_new_branch}"
175
- python scripts/gha/trigger_workflow.py -t ${{ steps.generate-build-token.outputs.token }} -w ${{ matrix.trigger_file }} -p unity_branch ${{ needs.update_versions.outputs.new_branch }}
183
+ python scripts/gha/trigger_workflow.py \
184
+ -t ${{ steps.generate-build-token.outputs.token }} \
185
+ -w ${{ matrix.trigger_file }} \
186
+ -p unity_branch ${{ needs.update_versions.outputs.new_branch }} \
187
+ -p firebase_cpp_sdk_version ${{ steps.cpprelease.outputs.release_tag }}
You can’t perform that action at this time.
0 commit comments