File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ name: Release Version
2
2
3
3
on :
4
4
workflow_dispatch :
5
+ inputs :
6
+ version_override :
7
+ description : ' Version override'
8
+ required : false
9
+ type : string
5
10
push :
6
11
branches :
7
12
- ' main'
@@ -17,10 +22,16 @@ jobs:
17
22
id : latest_firebase_release
18
23
run : |
19
24
version=$(gh release view --repo $REPO --json tagName --jq '.tagName')
20
- echo "::set-output name=version::${version}"
25
+
26
+ if [ -z "$VERSION_OVERRIDE" ]; then
27
+ echo "::set-output name=version::${VERSION_OVERRIDE}"
28
+ else
29
+ echo "::set-output name=version::${version}"
30
+ fi
21
31
env :
22
32
REPO : firebase/firebase-ios-sdk
23
33
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34
+ VERSION_OVERRIDE : ${{ inputs.version_override }}
24
35
25
36
- name : Check if branch exists
26
37
id : check_branch
You can’t perform that action at this time.
0 commit comments