Skip to content

Commit d4e8d40

Browse files
authored
work around ci counter having been reset. (HaxeFoundation#1119)
1 parent a08c621 commit d4e8d40

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

tools/version/Write.hx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@ class Write
55
public static function main()
66
{
77
var args = Sys.args();
8-
var buildNumber = Std.parseInt(args[0]);
8+
// AL NOTE: this "30 +" is a bodge around some CI stuff.
9+
// Usually the ever incrementing CI run number is provided as the argument, but this ID is per github workflow.
10+
// So when the release ci yml moved file the number reset to zero and we started overwriting previous releases.
11+
// For now just append 30 since the previous release was 25 or something.
12+
//
13+
// This will need to be revisited when anything other than the last number increases as you would end up with
14+
// something like 5.0.42 instead of 5.0.0.
15+
var buildNumber = 30 + Std.parseInt(args[0]);
916
if (buildNumber<1 || buildNumber==null)
1017
throw "Usage: Write buildNumber";
1118

0 commit comments

Comments
 (0)