From 8bae8808efb0d52c16edbb746f4f8640f2439b66 Mon Sep 17 00:00:00 2001 From: Jarrod Tuma Date: Wed, 11 Sep 2024 12:51:16 -0700 Subject: [PATCH] add silk tag string --- elec/pocketPSU_elec_main/pocketPSU.kibot.yaml | 5 ++++- elec/pocketPSU_elec_main/pocketPSU_elec_main.kicad_pcb | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/elec/pocketPSU_elec_main/pocketPSU.kibot.yaml b/elec/pocketPSU_elec_main/pocketPSU.kibot.yaml index f595855..447eb51 100644 --- a/elec/pocketPSU_elec_main/pocketPSU.kibot.yaml +++ b/elec/pocketPSU_elec_main/pocketPSU.kibot.yaml @@ -12,7 +12,10 @@ preflight: # The revision will be the short git hash # We use ${git_hash} for the REV field in the worksheet (frame) - name: 'git_hash' - command: 'git log -1 --format="%h_%(describe:tags)"' + command: 'git log -1 --format="%h"' + before: 'Git:' + - name: 'git_tag' + command: 'git log -1 --format="%(describe:tags)"' before: 'Git:' # Coherent date and time for the schematic and PCB # This will be the time stamp of the files generation, not the commit times diff --git a/elec/pocketPSU_elec_main/pocketPSU_elec_main.kicad_pcb b/elec/pocketPSU_elec_main/pocketPSU_elec_main.kicad_pcb index cbbd1c1..65c2022 100644 --- a/elec/pocketPSU_elec_main/pocketPSU_elec_main.kicad_pcb +++ b/elec/pocketPSU_elec_main/pocketPSU_elec_main.kicad_pcb @@ -23838,7 +23838,7 @@ (justify left bottom) ) ) - (gr_text "pocketPSU ${git_hash}" + (gr_text "pocketPSU ${git_tag}" (at 101 112.4 90) (layer "F.SilkS") (uuid "8c783133-f0b4-4ccd-9317-9557f3df2d28")