diff --git a/.allspice/columns.yml b/.allspice/columns.yml new file mode 100644 index 0000000..18def9b --- /dev/null +++ b/.allspice/columns.yml @@ -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" \ No newline at end of file diff --git a/.allspice/workflows/Digikey-Search-HTML-Report.yml b/.allspice/workflows/Digikey-Search-HTML-Report.yml index 020fab3..d999183 100644 --- a/.allspice/workflows/Digikey-Search-HTML-Report.yml +++ b/.allspice/workflows/Digikey-Search-HTML-Report.yml @@ -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