From f99fa1615cd9a7af65b1f5d12fff4eadc908ccb6 Mon Sep 17 00:00:00 2001 From: Gautam Peri Date: Tue, 3 Sep 2024 15:17:27 +0000 Subject: [PATCH 1/2] Adding column configuration in YML format --- .allspice/columns.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .allspice/columns.yml 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 -- 2.45.2 From a85df07089dec209ebe72c8970c3694d5278538f Mon Sep 17 00:00:00 2001 From: Gautam Peri Date: Tue, 3 Sep 2024 15:20:07 +0000 Subject: [PATCH 2/2] Updating BOM generation to v0.5, using digikey-search-html-report add-on v3, and PCB quantities --- .allspice/workflows/Digikey-Search-HTML-Report.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 -- 2.45.2