From d2427f29261b82ac2082e0a5850d0f116ca4531f Mon Sep 17 00:00:00 2001 From: ac Date: Fri, 27 Oct 2023 08:35:55 +1000 Subject: [PATCH] Cut 'rxx' from the end of revision tags --- default.kibot.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default.kibot.yaml b/default.kibot.yaml index 29365c3..1359f84 100644 --- a/default.kibot.yaml +++ b/default.kibot.yaml @@ -11,7 +11,7 @@ preflight: run_drc: true set_text_variables: - 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' expand_kibot_patterns: true text: '%D'