Skip to content

Commit 984651b

Browse files
kaklikgithub-actions[bot]
authored andcommitted
Update workflow files
1 parent 3c4f5b2 commit 984651b

File tree

2 files changed

+39
-45
lines changed

2 files changed

+39
-45
lines changed

.github/workflows/kicad_outputs.yml

+38-44
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ jobs:
2727
runs-on: ubuntu-latest
2828
continue-on-error: true
2929
steps:
30-
- uses: actions/checkout@v4
30+
- uses: actions/checkout@v3
3131
with:
3232
submodules: recursive
3333
token: ${{ secrets.pat }}
3434
ref: ${{ github.head_ref }}
3535

36-
- uses: INTI-CMNB/KiBot@v2_dk8
36+
- uses: INTI-CMNB/KiBot@v2_dk7
3737
with:
3838
config: ${{ env.kibot }}/erc.kibot.yaml
3939
schema: ${{ env.schema }}
@@ -45,13 +45,13 @@ jobs:
4545
runs-on: ubuntu-latest
4646
continue-on-error: true
4747
steps:
48-
- uses: actions/checkout@v4
48+
- uses: actions/checkout@v3
4949
with:
5050
submodules: recursive
5151
token: ${{ secrets.pat }}
5252
ref: ${{ github.head_ref }}
5353

54-
- uses: INTI-CMNB/KiBot@v2_dk8
54+
- uses: INTI-CMNB/KiBot@v2_dk7
5555
with:
5656
config: ${{ env.kibot }}/drc.kibot.yaml
5757
schema: ${{ env.schema }}
@@ -63,20 +63,20 @@ jobs:
6363
runs-on: ubuntu-latest
6464
continue-on-error: true
6565
steps:
66-
- uses: actions/checkout@v4
66+
- uses: actions/checkout@v3
6767
with:
6868
submodules: recursive
6969
token: ${{ secrets.pat }}
7070
ref: ${{ github.head_ref }}
7171

72-
- uses: INTI-CMNB/KiBot@v2_dk8
72+
- uses: INTI-CMNB/KiBot@v2_dk7
7373
with:
7474
config: ${{ env.kibot }}/schematics.kibot.yaml
7575
schema: ${{ env.schema }}
7676
board: ${{ env.board }}
7777
dir: ${{ env.dir }}_docs
7878

79-
- uses: actions/upload-artifact@v4
79+
- uses: actions/upload-artifact@v3
8080
if: ${{ success() }}
8181
with:
8282
name: doc_sch
@@ -87,47 +87,41 @@ jobs:
8787
runs-on: ubuntu-latest
8888
#continue-on-error: true
8989
steps:
90-
- uses: actions/checkout@v4
90+
- uses: actions/checkout@v3
9191
with:
9292
submodules: recursive
9393
token: ${{ secrets.pat }}
9494
ref: ${{ github.head_ref }}
9595

96-
- uses: INTI-CMNB/KiBot@v2_dk8
96+
- uses: INTI-CMNB/KiBot@v2_dk7
9797
with:
9898
config: ${{ env.kibot }}/placement.kibot.yaml
9999
schema: ${{ env.schema }}
100100
board: ${{ env.board }}
101101
dir: ${{ env.dir }}_docs
102102

103-
- uses: INTI-CMNB/KiBot@v2_dk8
103+
- uses: INTI-CMNB/KiBot@v2_dk7
104104
with:
105105
config: ${{ env.kibot }}/xml.kibot.yaml
106106
schema: ${{ env.schema }}
107107
board: ${{ env.board }}
108108
dir: ${{ env.dir }}_docs
109109

110-
# - name: "Rename output"
111-
# run: |
112-
# for file in $(find ${{env.dir}} -type f); do sudo mv "${file}" "${file//${{env.project}}/${{env.branch}}}" ; done
113-
# for file in $(find ${{env.dir}}_docs -type f); do sudo mv "${file}" "${file//${{env.project}}/${{env.branch}}}" ; done
114-
115-
- name: "Collect files"
110+
- name: "Rename output"
116111
run: |
117-
tree
118-
mkdir doc_xml || true ;
119-
mv hw/sch_pcb/*.xml doc_xml/ || true;
120-
mv hw/out_docs/*.csv doc_xml/ || true;
112+
for file in $(find ${{env.dir}} -type f); do sudo mv "${file}" "${file//${{env.project}}/${{env.branch}}}" ; done
113+
for file in $(find ${{env.dir}}_docs -type f); do sudo mv "${file}" "${file//${{env.project}}/${{env.branch}}}" ; done
121114
122-
- uses: actions/upload-artifact@v4
115+
- uses: actions/upload-artifact@v3
123116
if: ${{ success() }}
124117
with:
125118
name: doc_xml
126119
path: |
127-
doc_xml
120+
hw/sch_pcb/*.xml
121+
hw/sch_pcb/*.csv
128122
129123
# Zde se zahazuji debugovaci videa
130-
- uses: actions/upload-artifact@v4
124+
- uses: actions/upload-artifact@v3
131125
if: ${{ success() }}
132126
with:
133127
name: doc_placement
@@ -140,20 +134,20 @@ jobs:
140134
runs-on: ubuntu-latest
141135
#continue-on-error: true
142136
steps:
143-
- uses: actions/checkout@v4
137+
- uses: actions/checkout@v3
144138
with:
145139
submodules: recursive
146140
token: ${{ secrets.pat }}
147141
ref: ${{ github.head_ref }}
148142

149-
- uses: INTI-CMNB/KiBot@v2_dk8
143+
- uses: INTI-CMNB/KiBot@v2_dk7
150144
with:
151145
config: ${{ env.kibot }}/report.kibot.yaml
152146
schema: ${{ env.schema }}
153147
board: ${{ env.board }}
154148
dir: ${{ env.dir }}_report
155149

156-
- uses: actions/upload-artifact@v4
150+
- uses: actions/upload-artifact@v3
157151
if: ${{ success() }}
158152
with:
159153
name: doc_report
@@ -164,13 +158,13 @@ jobs:
164158
runs-on: ubuntu-latest
165159
continue-on-error: true
166160
steps:
167-
- uses: actions/checkout@v4
161+
- uses: actions/checkout@v3
168162
with:
169163
submodules: recursive
170164
token: ${{ secrets.pat }}
171165
ref: ${{ github.head_ref }}
172166

173-
- uses: INTI-CMNB/KiBot@v2_dk8
167+
- uses: INTI-CMNB/KiBot@v2_dk7
174168
with:
175169
config: ${{ env.kibot }}/ibom.kibot.yaml
176170
schema: ${{ env.schema }}
@@ -180,7 +174,7 @@ jobs:
180174
- name: "Rename output"
181175
run: for file in $(find ${{env.dir}} -type f); do sudo mv "${file}" "${file//${{env.project}}/${{env.branch}}}" ; done
182176

183-
- uses: actions/upload-artifact@v4
177+
- uses: actions/upload-artifact@v3
184178
if: ${{ success() }}
185179
with:
186180
name: doc_ibom
@@ -193,13 +187,13 @@ jobs:
193187
runs-on: ubuntu-latest
194188
continue-on-error: true
195189
steps:
196-
- uses: actions/checkout@v4
190+
- uses: actions/checkout@v3
197191
with:
198192
submodules: recursive
199193
token: ${{ secrets.pat }}
200194
ref: ${{ github.head_ref }}
201195

202-
- uses: INTI-CMNB/KiBot@v2_dk8
196+
- uses: INTI-CMNB/KiBot@v2_dk7
203197
with:
204198
config: ${{ env.kibot }}/gerbers.kibot.yaml
205199
schema: ${{ env.schema }}
@@ -210,7 +204,7 @@ jobs:
210204
- name: "Rename output"
211205
run: for file in $(find ${{env.dir}}_gerbers -type f); do sudo mv "${file}" "${file//${{env.project}}/${{env.branch}}}" || true ; done
212206

213-
- uses: actions/upload-artifact@v4
207+
- uses: actions/upload-artifact@v2
214208
if: ${{ success() }}
215209
with:
216210
name: hw_cam_profi
@@ -222,34 +216,34 @@ jobs:
222216
runs-on: ubuntu-latest
223217
#continue-on-error: true
224218
steps:
225-
- uses: actions/checkout@v4
219+
- uses: actions/checkout@v3
226220
with:
227221
submodules: recursive
228222
token: ${{ secrets.pat }}
229223
ref: ${{ github.head_ref }}
230224

231-
- uses: INTI-CMNB/KiBot@v2_dk8
225+
- uses: INTI-CMNB/KiBot@v2_dk7
232226
with:
233227
config: ${{ env.kibot }}/cad.kibot.yaml
234228
schema: ${{ env.schema }}
235229
board: ${{ env.board }}
236230
dir: ${{ env.dir }}_cad
237231

238-
- uses: INTI-CMNB/KiBot@v2_dk8
232+
- uses: INTI-CMNB/KiBot@v2_dk7
239233
with:
240234
config: ${{ env.kibot }}/render.kibot.yaml
241235
schema: ${{ env.schema }}
242236
board: ${{ env.board }}
243237
dir: ${{ env.dir }}_img
244238
verbose: 3
245239

246-
- uses: actions/upload-artifact@v4
240+
- uses: actions/upload-artifact@v3
247241
if: ${{ success() }}
248242
with:
249243
name: doc_cad
250244
path: ${{ env.dir }}_cad/**
251245

252-
- uses: actions/upload-artifact@v4
246+
- uses: actions/upload-artifact@v3
253247
if: ${{ success() }}
254248
with:
255249
name: doc_img
@@ -261,7 +255,7 @@ jobs:
261255
name: Update repository
262256
needs: [graphics, gerbers, schematics, placement, report, ibom]
263257
steps:
264-
- uses: actions/checkout@v4
258+
- uses: actions/checkout@v3
265259
with:
266260
ref: ${{ github.head_ref }}
267261
token: ${{ secrets.pat }}
@@ -271,7 +265,7 @@ jobs:
271265
git submodule update --remote || true
272266
273267
- name: Download a Build Artifact
274-
uses: actions/download-artifact@v4
268+
uses: actions/download-artifact@v3.0.0
275269

276270
- name: Remove old manufarturing data
277271
run: |
@@ -289,21 +283,21 @@ jobs:
289283
mkdir hw || true
290284
mkdir hw/cam_profi || true
291285
mkdir hw/cam_profi/gbr || true
292-
mkdir hw/cam_profi/assembly || true
286+
mkdir hw/cam_profi/PnP || true
293287
mkdir hw/cam_profi/ibom || true
294288

295289
cp -r doc_img/* doc/gen/img || true
296290
cp -r doc_cad/cad/* doc/gen || true
291+
mv -r hw_cam_profi/PnP hw/cam_profi/PnP || true
297292
cp -r hw_cam_profi/* hw/cam_profi/gbr || true
298293
cp -r doc_sch/docs/* doc/gen || true
299294
cp -r doc_xml/* hw/cam_profi || true
300295
cp -r doc_sch/img/pcb/* doc/gen/img || true
301-
mv -r doc_placement/PnP/* hw/cam_profi/assembly || true
302-
cp -r doc_placement/* hw/cam_profi/assembly || true
296+
cp -r doc_placement/doc* hw/cam_profi || true
303297
cp -r doc_report/* doc/gen || true
304-
cp -r doc_ibom/docs/* hw/cam_profi || true
298+
cp -r doc_ibom/docs/* hw/cam_profi/ibom || true
305299

306-
mv hw/cam_profi/gbr/PnP/ hw/cam_profi/assembly || true
300+
mv hw/cam_profi/grb/PnP hw/cam_profi/PnP || true
307301

308302
rm -r doc_img || true
309303
rm -r doc_cad || true

0 commit comments

Comments
 (0)