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
Console.WriteLine (sprintf "No tag being set (CI_COMMIT_TAG=%s), skipping release." ciTag)
108
116
Environment.Exit 0
109
117
110
118
failwith "GitLab not supported at the moment for Snap release process"
111
119
112
-
ciTag
120
+
Some ciTag
113
121
114
122
letchannel=
115
-
match Misc.FsxOnlyArguments()with
116
-
|[ channel ]->
123
+
match Misc.FsxOnlyArguments(), gitTagwith
124
+
|[ channel ],_->
117
125
channel
118
-
|[]->
126
+
|[], Some tag->
119
127
120
-
ifnot(snapFile.FullName.Contains gitTag)then
128
+
ifnot(snapFile.FullName.Contains tag)then
121
129
failwithf "Git tag (%s) doesn't match version in snap package file name (%s)"
122
-
gitTag
130
+
tag
123
131
snapFile.FullName
124
132
125
133
// the 'stable' and 'candidate' channels require 'stable' grade in the yaml
@@ -150,16 +158,19 @@ else
150
158
// this must be a fork, do nothing
151
159
Console.WriteLine "snapcraft.login file not found in likely GitLab fork repo, skipping log-in"
152
160
153
-
Console.WriteLine (sprintf "About to start upload of release %s" gitTag)
161
+
Console.WriteLine (sprintf "About to start upload of release %s"(gitTag|> Option.defaultValue channel))
154
162
155
163
letloginMsgAdvice=
156
164
"There was a problem trying to login with snapcraft, maybe the credentials expired?\r\n"+
157
165
"If that is the case, install it in the same way as in install_snapcraft.sh and perform 'snapcraft export-login snapcraft.login', then extract the contents of 'snapcraft.login' file"
0 commit comments