5
5
pull_request_target :
6
6
types :
7
7
- closed
8
+ - pull_request
9
+ - workflow_dispatch
10
+ - push
8
11
9
12
jobs :
10
13
build :
35
38
run : git clone https://github.com/Kampi/KiCad.git library
36
39
37
40
- name : Extract branch name
38
- run : echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
41
+ run : |
42
+ echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
43
+ echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
39
44
40
45
- name : Initialize
41
46
run : |
@@ -44,10 +49,10 @@ jobs:
44
49
45
50
- name : Generate files
46
51
run : |
47
- cd project
48
- kibot -g variant=${{ matrix.device_type }} -d ../production/${{ matrix.device_type }}
49
- mkdir ../production/${{ matrix.device_type }}/ordering
50
- mv ../production/PCBWay ../production/${{ matrix.device_type }}/ordering/PCBWay
52
+ # cd project
53
+ # kibot -g variant=${{ matrix.device_type }} -d ../production/${{ matrix.device_type }}
54
+ # mkdir ../production/${{ matrix.device_type }}/ordering
55
+ # mv ../production/PCBWay ../production/${{ matrix.device_type }}/ordering/PCBWay
51
56
52
57
- name : Upload Results
53
58
uses : actions/upload-artifact@v4
@@ -57,12 +62,18 @@ jobs:
57
62
if-no-files-found : ignore
58
63
59
64
- name : Update image
60
- if : ${{ matrix.NewImage && (github.event.pull_request.merged == true) }}
65
+ # if: ${{ matrix.NewImage && (github.event.pull_request.merged == true) }}
61
66
run : |
62
- git config --local user.name "github-actions[bot]"
63
- git config --local user.email "github-actions[bot]@users.noreply.github.com"
64
- cp production/${{ matrix.device_type }}/docs/images/PCB_Rendering.png docs/images/Image_Complete.png
65
- git add docs/images/Image_Complete.png
66
- git commit -m "Add image from CI/CD action"
67
- git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
68
- git push origin ${{ github.base_ref }}
67
+ echo "github.event_name=${github.event_name}"
68
+ echo "github.base_ref=${github.base_ref}"
69
+ echo "github.event.pull_request.merged=${github.event.pull_request.merged}"
70
+ echo "github.event_name=${github.event_name}" >> $GITHUB_OUTPUT
71
+ echo "github.base_ref=${github.base_ref}" >> $GITHUB_OUTPUT
72
+ echo "github.event.pull_request.merged=${github.event.pull_request.merged}" >> $GITHUB_OUTPUT
73
+ #git config --local user.name "github-actions[bot]"
74
+ #git config --local user.email "github-actions[bot]@users.noreply.github.com"
75
+ #cp production/${{ matrix.device_type }}/docs/images/PCB_Rendering.png docs/images/Image_Complete.png
76
+ #git add docs/images/Image_Complete.png
77
+ #git commit -m "Add image from CI/CD action"
78
+ #git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
79
+ #git push origin ${{ github.base_ref }}
0 commit comments