develop #8

Merged
gautam merged 2 commits from develop into main 2024-09-03 15:21:45 +00:00
2 changed files with 26 additions and 4 deletions

20
.allspice/columns.yml Normal file
View File

@ -0,0 +1,20 @@
columns:
- name: "Part Number"
part_attributes:
- "PART"
- "MANUFACTURER #"
- "_part_id"
- name: "Manufacturer"
part_attributes:
- "Manufacturer"
- "MANUFACTURER"
sort: "asc"
remove_rows_matching: "TP|MTG|FID"
- name: "Reference Designator"
part_attributes: "Designator"
grouped_values_separator: ", "
grouped_values_sort: "asc"
- name: "Description"
part_attributes:
- "PART DESCRIPTION"
- "_description"

View File

@ -17,14 +17,14 @@ jobs:
uses: actions/checkout@v3
- name: Generate BOM
uses: https://hub.allspice.io/Actions/generate-bom@v0.3
uses: https://hub.allspice.io/Actions/generate-bom@v0.5
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
# [optional] A path to a YML file mapping columns to the component attributes
# they are from. This file must be provided.
# Default: 'columns.json'
columns: .allspice/columns.json
columns: .allspice/columns.yml
# [optional] The path to the output file that will be generated.
# Default: 'bom.csv'
output_file_name: bom.csv
@ -49,10 +49,12 @@ jobs:
path: bom.csv
- name: Generate DigiKey Report
uses: https://hub.allspice.io/Actions/digikey-search-html-report.git@v1
uses: https://hub.allspice.io/Actions/digikey-search-html-report.git@v3
with:
# The input BOM file for generating the DigiKey report
bom_file: bom.csv
# Set quantities for COGS pricing
pcb_quantities: 1,25,100,500,1000
# The DigiKey client ID
digikey_client_id: ${{ secrets.DIGIKEY_CLIENT_ID }}
# The DigiKey client secret