We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b39d2cf commit ddac3eeCopy full SHA for ddac3ee
.github/scripts/create-platform-release-pr.sh
@@ -92,7 +92,16 @@ get_release_branch_name() {
92
if [[ "$platform" == "mobile" ]]; then
93
echo "release/${new_version}"
94
elif [[ "$platform" == "extension" ]]; then
95
- echo "Version-v${new_version}"
+ local candidate_primary="Version-v${new_version}"
96
+ local candidate_alt="release/${new_version}"
97
+ # Prefer Version-v... if it exists on origin; otherwise use release/... if present; else default to Version-v...
98
+ if git ls-remote --heads origin "${candidate_primary}" | grep -q "."; then
99
+ echo "${candidate_primary}"
100
+ elif git ls-remote --heads origin "${candidate_alt}" | grep -q "."; then
101
+ echo "${candidate_alt}"
102
+ else
103
104
+ fi
105
fi
106
}
107
0 commit comments