Skip to content

Commit 6874d25

Browse files
committed
use git
1 parent 9acab8d commit 6874d25

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/kibot.yaml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ on:
1010
- LOG
1111
- LORA
1212
- POS
13-
paths:
14-
- '**.kicad_sch'
15-
- '**.kicad_pcb'
13+
# paths:
14+
# - '**.kicad_sch'
15+
# - '**.kicad_pcb'
1616

1717
jobs:
1818
kibot:
@@ -21,14 +21,13 @@ jobs:
2121

2222
steps:
2323
- name: Checkout repo
24-
uses: actions/checkout@v3
24+
uses: actions/checkout@v4
2525

26-
# extract branch name
26+
# # extract branch name
2727
- name: Extract branch name
28-
if: github.event_name != 'pull_request'
29-
shell: bash
30-
run: echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV
31-
id: extract_branch
28+
run: |
29+
echo "BRANCH_NAME=$(git name-rev --name-only HEAD)" >> $GITHUB_ENV
30+
echo $BRANCH_NAME
3231
3332
# Start of the KiBot steps
3433
- name: Run KiBot
@@ -40,4 +39,4 @@ jobs:
4039
uses: actions/upload-artifact@v4
4140
with:
4241
name: ProMicro_$BRANCH_NAME
43-
path: $BRANCH_NAME/*
42+
path: ${{ env.BRANCH_NAME }}

0 commit comments

Comments
 (0)