mirror of https://github.com/rusefi/rusefi.git
Generate changed pinouts on PR (#5411)
* check pinouts on pr * checkout with depth and try proper diff * use delimiter for multiline diff * use interactive-pinout 2.8 * ignore deleted yamls * don't worry be happy
This commit is contained in:
parent
0f250c3ae0
commit
e776502218
|
@ -0,0 +1,71 @@
|
|||
#
|
||||
# See https://github.com/rusefi/rusefi/wiki/Connector-Mapping
|
||||
#
|
||||
|
||||
name: Check Interactive Pinouts
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
generate:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
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.8
|
||||
with:
|
||||
mapping-path: ${{ env.CHANGED }}
|
||||
warnings: "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"
|
||||
}
|
Loading…
Reference in New Issue