Skip to content

Commit dffb6f0

Browse files
authored
fixes (#78)
1 parent 53e896d commit dffb6f0

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: Release Version
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
version_override:
7+
description: 'Version override'
8+
required: false
9+
type: string
510
push:
611
branches:
712
- 'main'
@@ -17,10 +22,16 @@ jobs:
1722
id: latest_firebase_release
1823
run: |
1924
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
2131
env:
2232
REPO: firebase/firebase-ios-sdk
2333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
VERSION_OVERRIDE: ${{ inputs.version_override }}
2435

2536
- name: Check if branch exists
2637
id: check_branch

0 commit comments

Comments
 (0)