Skip to content

Commit

Permalink
work around ci counter having been reset. (#1119)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aidan63 authored Jun 26, 2024
1 parent a08c621 commit d4e8d40
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tools/version/Write.hx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@ class Write
public static function main()
{
var args = Sys.args();
var buildNumber = Std.parseInt(args[0]);
// AL NOTE: this "30 +" is a bodge around some CI stuff.
// Usually the ever incrementing CI run number is provided as the argument, but this ID is per github workflow.
// So when the release ci yml moved file the number reset to zero and we started overwriting previous releases.
// For now just append 30 since the previous release was 25 or something.
//
// This will need to be revisited when anything other than the last number increases as you would end up with
// something like 5.0.42 instead of 5.0.0.
var buildNumber = 30 + Std.parseInt(args[0]);
if (buildNumber<1 || buildNumber==null)
throw "Usage: Write buildNumber";

Expand Down

0 comments on commit d4e8d40

Please sign in to comment.