forked from rusefi/rusefi
-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (66 loc) · 1.68 KB
/
Copy pathcheck-pinout.yaml
File metadata and controls
72 lines (66 loc) · 1.68 KB
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
#
# See https://wiki.rusefi.com/Connector-Mapping
#
name: Check Interactive Pinouts
on:
pull_request:
jobs:
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 2
- name: Check for Pinout Changes
run: |
DIFF=$(git diff --name-only --diff-filter=ACMR HEAD^..HEAD | grep -e "connectors/.*\.yaml"; true)
echo "CHANGED<<DELIM" >> $GITHUB_ENV
echo "$DIFF" >> $GITHUB_ENV
echo "DELIM" >> $GITHUB_ENV
- name: Generate Pinouts
uses: chuckwagoncomputing/interactive-pinout@2.18
with:
mapping-path: ${{ env.CHANGED }}
warnings: "notice"
warning-no-connectors: "false"
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"
}