Testing having a truncated (major.minor only) revision for the PCB

This commit is contained in:
andrewc
2025-05-21 11:45:33 +10:00
parent 5a909ac0f0
commit 387a8d9b68
2 changed files with 5 additions and 1 deletions

View File

@@ -12,6 +12,8 @@ preflight:
set_text_variables:
- name: 'rev'
command: 'if [ $(git describe --tags | wc -w) -gt 0 ]; then git describe --tags | sed -e "s/\([r,R][0-9]\+\)*$//g"; else echo $CI_COMMIT_SHORT_SHA; fi'
- name: 'rev_pcb'
command: if [ $(git describe --tags | wc -w) -gt 0 ]; then git describe --tags | awk -F- 'BEGIN {ORS=""} {split($1,a,"."); print a[1]"."a[2]; if ($2) print "-"$2}' ; else echo $CI_COMMIT_SHORT_SHA; fi
- name: 'date'
expand_kibot_patterns: true
text: '%D'