Skip to content

use git

use git #10

Workflow file for this run

name: kibot
on:
pull_request:
push:
branches:
- BOOST
- BUS
- CONN
- LOG
- LORA
- POS
# paths:
# - '**.kicad_sch'
# - '**.kicad_pcb'
jobs:
kibot:
runs-on: ubuntu-latest
container: ghcr.io/inti-cmnb/kicad8_auto:latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
# extract branch name
- name: Extract branch name
if: github.event_name != 'pull_request'
shell: bash
# run: echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV
run: |
echo "BRANCH_NAME=$(git name-rev --name-only HEAD)" >> $GITHUB_ENV
echo $BRANCH_NAME
# Start of the KiBot steps
- name: Run KiBot
run: kibot -d $BRANCH_NAME -c $BRANCH_NAME/variant.kibot.yaml -e "$BRANCH_NAME/$BRANCH_NAME.kicad_sch" -b "$BRANCH_NAME/$BRANCH_NAME.kicad_pcb"
# Upload the artifacts
# if: ${{ always() }}
- name: upload artifacts
uses: actions/upload-artifact@v4
with:
name: ProMicro_$BRANCH_NAME
path: ${{ BRANCH_NAME }}

Check failure on line 45 in .github/workflows/kibot.yaml

View workflow run for this annotation

GitHub Actions / kibot

Invalid workflow file

The workflow is not valid. .github/workflows/kibot.yaml (Line: 45, Col: 15): Unrecognized named-value: 'BRANCH_NAME'. Located at position 1 within expression: BRANCH_NAME