2022-11-17 12:49:05 -08:00
|
|
|
#
|
|
|
|
# See https://github.com/rusefi/rusefi/wiki/Connector-Mapping
|
|
|
|
#
|
|
|
|
|
2021-02-06 10:43:43 -08:00
|
|
|
name: Generate Interactive Pinouts
|
|
|
|
|
|
|
|
on:
|
2021-02-08 21:35:40 -08:00
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * *'
|
2021-04-27 15:35:05 -07:00
|
|
|
workflow_dispatch:
|
2021-02-06 10:43:43 -08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
generate:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-09-05 06:09:12 -07:00
|
|
|
- uses: actions/checkout@v4
|
2021-02-06 10:43:43 -08:00
|
|
|
|
2023-02-05 13:38:15 -08:00
|
|
|
- name: Generate Pinouts
|
2024-01-26 01:00:02 -08:00
|
|
|
uses: chuckwagoncomputing/interactive-pinout@2.13
|
2023-02-05 13:38:15 -08:00
|
|
|
with:
|
2023-07-31 15:53:08 -07:00
|
|
|
mapping-path: firmware/config/boards/*/connectors/*.yaml
|
2023-02-05 13:38:15 -08:00
|
|
|
warnings: "false"
|
2024-01-18 19:54:31 -08:00
|
|
|
warning-no-pins: "skip"
|
2023-02-19 05:29:49 -08:00
|
|
|
warning-dupe: "error"
|
2023-02-05 13:38:15 -08:00
|
|
|
columns: |
|
|
|
|
{
|
|
|
|
"pin":"Pin Number",
|
|
|
|
"ts_name":"TS Name",
|
|
|
|
"type":"Type",
|
|
|
|
"function":"Typical Function",
|
|
|
|
"color":"Pigtail Color"
|
|
|
|
}
|
|
|
|
print-columns: |
|
|
|
|
[
|
|
|
|
"function"
|
|
|
|
]
|
2023-04-29 12:46:37 -07:00
|
|
|
info-column: "type"
|
2023-08-19 12:52:03 -07:00
|
|
|
templates: |
|
|
|
|
{
|
|
|
|
"___": "pin"
|
|
|
|
}
|
2023-02-05 13:38:15 -08:00
|
|
|
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"
|
|
|
|
}
|
2021-02-06 10:43:43 -08:00
|
|
|
|
2023-02-05 13:38:15 -08:00
|
|
|
- name: Upload Pinouts
|
2023-07-04 18:25:05 -07:00
|
|
|
env:
|
|
|
|
pass: ${{ secrets.RUSEFI_SSH_PASS }}
|
|
|
|
if: ${{ env.pass != '' }}
|
2023-02-05 13:38:15 -08:00
|
|
|
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"
|