Skip to content

Commit

Permalink
add build data to version string when building a branch
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas committed Oct 9, 2023
1 parent c057271 commit 4a8ca6e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion webinstall/cibuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -566,9 +566,17 @@ class PipelineInfo{
let type=bot.textContent;
let val=botv.textContent;
if (type && val){
if (type != 'release' && type != 'tag'){
if (type != 'release' && type != 'tag' && type != 'branch'){
val=type+val;
}
if (type == 'branch'){
let now=new Date();
let m=now.getMonth()+1;
m=((m<10)?"0":"")+m;
let d=now.getDay();
d=((d<10)?"0":"")+d;
val=val+now.getFullYear()+m+d;
}
val=val.replace(/[:.]/g,'_');
val=val.replace(/[^a-zA-Z0-9_]*/g,'');
if (val.length > 32){
Expand Down

0 comments on commit 4a8ca6e

Please sign in to comment.