Fix version detection to use KIBOT_VAR_rev environment variable
Updated sch, mech, pcb_main, and pos configs to properly check for KIBOT_VAR_rev before falling back to git describe. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -12,6 +12,6 @@ preflight:
|
||||
drc: false
|
||||
set_text_variables:
|
||||
- name: 'rev'
|
||||
command: 'cat $CI_PROJECT_DIR/.version 2>/dev/null || cat .version 2>/dev/null || git describe --tags 2>/dev/null || echo unknown'
|
||||
command: 'if [ -n "$KIBOT_VAR_rev" ]; then echo $KIBOT_VAR_rev; else git describe --tags 2>/dev/null || echo $CI_COMMIT_SHORT_SHA; fi'
|
||||
- name: 'rev_pcb'
|
||||
command: 'cat $CI_PROJECT_DIR/.version 2>/dev/null || cat .version 2>/dev/null || git describe --tags 2>/dev/null || echo unknown'
|
||||
command: 'if [ -n "$KIBOT_VAR_rev_pcb" ]; then echo $KIBOT_VAR_rev_pcb; else git describe --tags 2>/dev/null || echo $CI_COMMIT_SHORT_SHA; fi'
|
||||
|
||||
Reference in New Issue
Block a user