You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
abort "Working tree is not clean. Commit or stash your changes before running the release script."
@@ -27,8 +31,15 @@ require_main_branch() {
27
31
}
28
32
29
33
require_up_to_date_main() {
34
+
if! remote_checks_enabled;then
35
+
echo"Skipping remote main check because LASO_SKIP_REMOTE_CHECKS=1"
36
+
return
37
+
fi
38
+
30
39
echo"Checking remote main branch..."
31
-
git fetch origin main
40
+
if! git fetch origin main;then
41
+
abort "Unable to fetch origin/main from $(git remote get-url origin). Verify network access, or rerun with LASO_SKIP_REMOTE_CHECKS=1 for a local-only release."
42
+
fi
32
43
33
44
local local_head remote_head merge_base
34
45
local_head=$(git rev-parse HEAD)
@@ -74,13 +85,24 @@ compute_next_version() {
74
85
75
86
ensure_tag_available() {
76
87
local tag=$1
88
+
local remote_tag_status=0
77
89
78
90
if git rev-parse "$tag">/dev/null 2>&1;then
79
91
abort "Tag $tag already exists locally."
80
92
fi
81
93
82
-
if git ls-remote --exit-code --tags origin "refs/tags/$tag">/dev/null 2>&1;then
0 commit comments