Skip to content

Commit e0ccf66

Browse files
authored
Also work from refs/tags/* (#9875)
1 parent 89c38d1 commit e0ccf66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/update-cpp-sdk-on-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ jobs:
4242
- name: Ensure Cocoapods repo has been updated
4343
run: |
4444
# If the new version is simply vX.Y.Z or X.Y.Z, wait up to an hour each for its podspec and prebuilt zip file to be present.
45-
if [[ "$GITHUB_REF" =~ ^v?[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
46-
version=$(echo "$GITHUB_REF" | sed s/^v//) # remove leading v if present
45+
if [[ "$GITHUB_REF" =~ ^(refs/tags/)?v?[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
46+
version=$(echo "$GITHUB_REF" | sed 's|^refs/tags/||' | sed s/^v//) # remove leading refs/tags and v if present
4747
echo "Checking Cocoapods repo for associated Firebase ${version} podspec."
4848
podspec_url="https://github.com/CocoaPods/Specs/blob/master/Specs/0/3/5/Firebase/${version}/Firebase.podspec.json"
4949
for retry in {1..12} error; do

0 commit comments

Comments
 (0)