mirror of
https://staging.allspice.dev/AllSpice-Demos/Actions-demo.git
synced 2025-04-24 01:03:43 +00:00
Update to PR22 25172dd086
This commit is contained in:
parent
a53e54d251
commit
f65fcec063
.allspice/workflows
@ -1,3 +1,4 @@
|
||||
|
||||
# This is a basic workflow to help you get started with Actions
|
||||
# Lines beginning with a `#` are comments, and only intended to help reviewers understand the script
|
||||
# Actions documentation: https://learn.allspice.io/docs/actions-cicd
|
||||
|
@ -1,8 +1,8 @@
|
||||
# AllSpice Actions demo
|
||||
# AllSpice Running common Actions workflow
|
||||
# Action triggers on push and issues
|
||||
# Action runs "generate-bom-altium" action
|
||||
# .allspice/workflows/generate_bom.yml
|
||||
name: Running common Actions: Generate BOM
|
||||
name: Generate BOM
|
||||
on:
|
||||
push:
|
||||
issues:
|
||||
@ -12,23 +12,35 @@ jobs:
|
||||
Generate_BOM:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# Checkout is only needed if columns.json is committed in your Altium project repo.
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Generate BOM
|
||||
# Uses the "generate-bom-altium" action at version 0.0.1 to generate BOM
|
||||
uses: https://hub.allspice.io/Actions/generate-bom-altium@v0.0.1
|
||||
uses: https://hub.allspice.io/Actions/generate-bom-altium@v0.2
|
||||
with:
|
||||
# The path to the Altium project file in your repo.
|
||||
project_path: Archimajor.PrjPcb
|
||||
|
||||
# [optional] A path to a JSON file mapping columns to the component attributes
|
||||
# they are from. This file must be provided.
|
||||
# Default: 'columns.json'
|
||||
columns: .allspice/columns.json
|
||||
|
||||
# [optional] The path to the output file that will be generated.
|
||||
# Default: 'bom.csv'
|
||||
output_file_name: bom.csv
|
||||
pcb_path: Archimajor.PcbDoc
|
||||
# Maps the attributes BOM Column on the left and Altium Attribute Name on the right
|
||||
# "BOM Column name": ["ALTIUM ATTRIBUTE NAME"]
|
||||
attributes_mapping: '
|
||||
{
|
||||
"manufacturer": ["Manufacturer", "MANUFACTURER"],
|
||||
"part_number": ["PART", "MANUFACTURER #"],
|
||||
"description": ["PART DESCRIPTION"],
|
||||
"designator": ["Designator"]
|
||||
}'
|
||||
|
||||
|
||||
# [optional] A comma-separated list of columns to group the BOM by. If empty
|
||||
# or not present, the BOM will be flat.
|
||||
# Default: ''
|
||||
group_by: 'Part ID'
|
||||
|
||||
# [optional] The variant of the project to generate the BOM for. If empty
|
||||
# or not present, the BOM will be generated for the default variant.
|
||||
# Default: ''
|
||||
variant: ''
|
||||
|
||||
# Print bom.csv to terminal
|
||||
- name: Show BOM
|
||||
run: cat bom.csv
|
||||
|
Loading…
Reference in New Issue
Block a user