Files
Daniel Lindmark 06ad4b877e Update readme.md
2025-07-07 10:20:50 -05:00

56 lines
1.5 KiB
YAML

name: "Action template"
description: >
An Action Template to show you how to creat your own AllSpice Action
for modular reuse
# You can choose your own variables to pass from your workflow.yml file to this action.
inputs:
source_path:
description: >
Path to the source file from the root of the repo. This should be:
- A .PrjPcb file for Altium projects.
- A .DSN file for OrCAD projects.
- An .SDAX file for System Capture projects.
required: true
output_file_name:
description: "Name of the output file"
required: true
default: "output.csv"
columns:
description: >
A path to a JSON file mapping columns to the attributes they are from.
required: true
log_level:
description: >
The level at which to log. Use "DEBUG" to get more information, such as
about which file was used to match which device sheet.
required: false
default: INFO
auth_token:
description: >
The AllSpice Hub Auth token to use. If not provided, the autogenerated
token for the run is used.
required: false
default: ${{ github.token }}
runs:
using: "docker"
image: "Dockerfile"
args:
- "--source_ref"
- ${{ github.sha }}
- "--allspice_hub_url"
- ${{ github.server_url }}
- "--columns"
- ${{ inputs.columns }}
- "--output_file"
- "${{ github.workspace}}/${{ inputs.output_file_name }}"
- "--log-level"
- ${{ inputs.log_level }}
- ${{ github.repository }}
- ${{ inputs.source_path }}
env:
ALLSPICE_AUTH_TOKEN: ${{ inputs.auth_token }}