Cut 'rxx' from the end of revision tags

This commit is contained in:
ac
2023-10-27 08:35:55 +10:00
parent 7f56cf75ed
commit d2427f2926

View File

@@ -11,7 +11,7 @@ preflight:
run_drc: true run_drc: true
set_text_variables: set_text_variables:
- name: 'rev' - name: 'rev'
command: "if [ $(git describe --tags | wc -w) -gt 0 ]; then git describe --tags; else echo $CI_COMMIT_SHORT_SHA; fi" 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: 'date' - name: 'date'
expand_kibot_patterns: true expand_kibot_patterns: true
text: '%D' text: '%D'