Update .gitea/workflows/kibot.yml
This commit is contained in:
@@ -23,7 +23,7 @@ on:
|
|||||||
board_layers:
|
board_layers:
|
||||||
description: 'Number of PCB layers'
|
description: 'Number of PCB layers'
|
||||||
required: false
|
required: false
|
||||||
default: '4'
|
default: '2'
|
||||||
type: choice
|
type: choice
|
||||||
options:
|
options:
|
||||||
- '2'
|
- '2'
|
||||||
@@ -76,10 +76,10 @@ jobs:
|
|||||||
- name: Set layer count
|
- name: Set layer count
|
||||||
id: layers
|
id: layers
|
||||||
run: |
|
run: |
|
||||||
# Use workflow input or default to 2 layers
|
# Use workflow input or default to 4 layers
|
||||||
LAYERS="${{ github.event.inputs.board_layers }}"
|
LAYERS="${{ github.event.inputs.board_layers }}"
|
||||||
if [ -z "$LAYERS" ]; then
|
if [ -z "$LAYERS" ]; then
|
||||||
LAYERS="2"
|
LAYERS="4" # Change this default if needed
|
||||||
fi
|
fi
|
||||||
echo "layers=$LAYERS" >> $GITHUB_OUTPUT
|
echo "layers=$LAYERS" >> $GITHUB_OUTPUT
|
||||||
echo "Using $LAYERS layer configuration"
|
echo "Using $LAYERS layer configuration"
|
||||||
|
|||||||
Reference in New Issue
Block a user