Files
kicad-ci/configs/pos.kibot.yaml
T
timmyhadwen bdc70e87fc fix: replace GitLab-only CI variables
CI_PROJECT_DIR and CI_COMMIT_SHORT_SHA do not exist on Gitea Actions.
user_templates was resolving to /.gitlab/templates, and the rev
fallback echoed an empty string. Use WORKDIR (already exported into
the KiBot container) and GITHUB_SHA.
2026-08-23 18:57:58 +10:00

19 lines
686 B
YAML

# Example KiPlot config file
kibot:
version: 1
import:
- file: default.kibot.yaml
outputs: ['neo_position']
preflight:
erc: false
update_xml: false
drc: false
set_text_variables:
- name: 'rev'
command: 'if [ -n "$KIBOT_VAR_rev" ]; then echo $KIBOT_VAR_rev; else git describe --tags 2>/dev/null || echo ${GITHUB_SHA:0:8}; fi'
- name: 'rev_pcb'
command: 'if [ -n "$KIBOT_VAR_rev_pcb" ]; then echo $KIBOT_VAR_rev_pcb; else git describe --tags 2>/dev/null || echo ${GITHUB_SHA:0:8}; fi'
- name: 'name'
command: 'if [ -n "$KIBOT_VAR_name" ]; then echo $KIBOT_VAR_name; else echo $KIBOT_PCB_NAME | rev | cut -d"/" -f1 | rev | cut -d"-" -f1; fi'