Testing having a truncated (major.minor only) revision for the PCB
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user