use git #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
|