52 lines
1.5 KiB
YAML
52 lines
1.5 KiB
YAML
name: "Hardware DevOps Action"
|
|
description: >
|
|
A generic AllSpice Action Add-on for hardware development tasks such as schematic review,
|
|
PCB review, ECO review, and release. This action demonstrates defining parameters
|
|
for these tasks and utilizing GitHub context information.
|
|
|
|
inputs:
|
|
source_file:
|
|
description: >
|
|
Path to the source file or directory from the root of the repo. For example,
|
|
the path to a schematic or PCB file.
|
|
required: true
|
|
output_file_name:
|
|
description: "Name of the output file"
|
|
required: true
|
|
default: "output.txt"
|
|
config_file:
|
|
description: >
|
|
Path to a configuration file for the task.
|
|
required: true
|
|
task_type:
|
|
description: >
|
|
The type of hardware task to perform. Options include 'Schematic-Review',
|
|
'PCB-Review', 'ECO-Review', 'Release'.
|
|
default: "Schematic-Review"
|
|
additional_params:
|
|
description: >
|
|
Any additional parameters required for the task, provided as a JSON string.
|
|
default: "{}"
|
|
|
|
runs:
|
|
using: "docker"
|
|
image: "Dockerfile"
|
|
args:
|
|
- "--source_file"
|
|
- "${{ inputs.source_file}}"
|
|
- "--output_file"
|
|
- "${{ github.workspace}}/${{ inputs.output_file_name }}"
|
|
- "--config_file"
|
|
- ${{ inputs.config_file }}
|
|
- "--task_type"
|
|
- ${{ inputs.task_type }}
|
|
- "--additional_params"
|
|
- ${{ inputs.additional_params }}
|
|
- "--source_ref"
|
|
- ${{ allspice.sha }}
|
|
- "--server_url"
|
|
- ${{ allspice.server_url }}
|
|
- "--allspice_token"
|
|
- ${{ secrets.ALLSPICE_TOKEN }}
|
|
env:
|
|
GITHUB_TOKEN: ${{ github.token }} |