-
Notifications
You must be signed in to change notification settings - Fork 19
76 lines (69 loc) · 1.82 KB
/
gen-pinouts.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#
# See https://github.com/rusefi/rusefi/wiki/Connector-Mapping
#
name: Generate Interactive Pinouts
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
push:
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Generate Pinouts
uses: chuckwagoncomputing/[email protected]
with:
mapping-path: "*/connectors/*.yaml"
warnings: "error"
debug: true
warning-no-pins: "error"
warning-dupe: "error"
columns: |
{
"pin":"Pin Number",
"ts_name":"TS Name",
"type":"Type",
"function":"Typical Function",
"color":"Pigtail Color"
}
print-columns: |
[
"function"
]
info-column: "type"
colors: |
{
"12v":"yellow";
"12V":"yellow";
"5v":"red",
"5V":"red",
"at":"green",
"av":"brown",
"can":"blue",
"din":"lime",
"etb":"darkcyan",
"gnd":"darkgreen",
"gp_high":"aqua",
"gp_low":"aquamarine",
"gp_pp":"cyan",
"hall":"darkolivegreen",
"hl":"gold",
"hs":"indigo",
"ign":"magenta",
"inj":"maroon",
"ls":"lightgreen",
"mr":"firebrick",
"pgnd":"coral",
"sgnd":"olive",
"usb":"lightseagreen",
"vr":"sienna"
}
- name: Showing Output Folder
run: ls -l pinouts
- name: Upload Pinouts
env:
pass: ${{ secrets.RUSEFI_SSH_PASS }}
if: ${{ env.pass != '' }}
run: tar -czf - pinouts | sshpass -p "${{ secrets.RUSEFI_SSH_PASS }}" ssh -o StrictHostKeyChecking=no "${{ secrets.RUSEFI_SSH_USER }}"@"${{ secrets.RUSEFI_SSH_SERVER }}" "tar -xzf - -C docs"