Ari Mahpour
a56ab4b1b5
All checks were successful
Generate DigiKey Report / Generate_DigiKey_Report (push) Successful in 1m7s
47 lines
1.6 KiB
Plaintext
47 lines
1.6 KiB
Plaintext
# AllSpice Running common Actions workflow
|
|
# Action triggers on push and issues
|
|
# Action runs "generate-bom-altium" action
|
|
# .allspice/workflows/generate_bom.yml
|
|
name: Generate BOM
|
|
on:
|
|
push:
|
|
issues:
|
|
types: [opened, closed, reopened]
|
|
|
|
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: https://hub.allspice.io/Actions/generate-bom@v0.3
|
|
with:
|
|
# The path to the project file in your repo (.PrjPcb for Altium, .DSN for OrCad).
|
|
source_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
|
|
# [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 Number'
|
|
# [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
|
|
|
|
- name: Upload file as artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: BOM.csv
|
|
path: bom.csv |