Files
2024-09-12 12:10:21 -04:00

52 lines
1.4 KiB
YAML

name: "Generate WireViz template for a Multiboard Assembly"
description: >
Generate a WireViz template YAML file for a multiboard assembly.
The template file includes all the connectors and their pins, but does NOT
include any wires or connections.
Requires an AllSpice Hub Auth Token, as the default token does not have
permissions to read other repositories.
inputs:
allspice_auth_token:
description: The auth token for the AllSpice Hub instance.
required: true
assembly_file_path:
description: The path to the assembly YAML file.
required: false
default: "assembly.yaml"
variant:
description: The variant of the assembly to generate the template for.
required: false
default: ""
output_file:
description: The name of the file to output.
required: false
default: "wireviz.yaml"
log_level:
description: The log level used by the action. Used for debugging.
required: false
default: "INFO"
runs:
using: "docker"
image: "Dockerfile"
args:
- "--assembly-file"
- ${{ inputs.assembly_file_path }}
- "--variant"
- ${{ inputs.variant }}
- "--output-file"
- "${{ github.workspace}}/${{ inputs.output_file }}"
- "--repository"
- ${{ github.repository }}
- "--ref"
- ${{ github.ref }}
- "--allspice-hub-url"
- ${{ github.server_url }}
- "--log-level"
- ${{ inputs.log_level }}
env:
ALLSPICE_AUTH_TOKEN: ${{ inputs.allspice_auth_token }}