- 3 Minutes to read
- Print
- DarkLight
- PDF
Using the Actions Library
- 3 Minutes to read
- Print
- DarkLight
- PDF
Getting Started with AllSpice Actions Add-ons
AllSpice hosts an ever-growing library of Actions Add-ons, each designed to simplify and modularize your workflow.
Every Add-on contains detailed instructions in the README.md
file along with a demo repository to guide you on how to use it. Whether you're looking for a modular solution or learning how to create your own reusable actions, Add-ons are the perfect starting point.
We recommend exploring our main Actions Demo repo to discover top demos.
How to Get Started with Add-ons
The best way to start using the Actions Library is to clone or migrate one of our demo repositories and run it before applying it to your own files. This hands-on approach helps ensure you understand the process and have a working example to troubleshoot as you configure the Add-on for your project.
Migrating the Actions Demo Repository
Follow these steps to migrate the demo repository and set it up in your organization:
- Copy this URL:
https://hub.allspice.io/AllSpice-Demos/Action-bom-gen-Demo.git
- In the upper right corner of your dashboard, click on the "+" icon.
- Select New Migration.
- Choose AllSpice as the migration source.
- Paste the copied URL into the Migrate / Clone From URL field.
- Change the owner to your organization (Actions cannot be run from personal repositories).
- Ensure the Repository Name is filled automatically, or set it to something like "Action-bom-gen-Demo."
- Click Migrate Repository.
Triggering the Actions Demo
Once the repo is migrated, it's set to trigger on any push or issue creation, closure, or reopening. These issue triggers provide a simple way to run Actions directly from the website interface.
Creating an Issue to Trigger Actions
- Navigate to the Issues tab.
- Click New Issue.
- Title it something like "Trigger Action."
- Click Create Issue.
The action should run automatically. To re-trigger it, you can either create another issue or close and reopen the existing issue. Normally, you'd trigger the action by pushing new files.
Viewing the Action's Results
- Go to the Actions tab.
- Click the run link for the latest run.
- Download any generated artifact files by clicking on them.
Customizing the Workflow for Your Project
Once you've reviewed the demo, you can customize the workflow for your own project:
- Copy everything in the
.allspice
folder to your repository's.allspice
folder. - Modify the workflow for your specific ECAD tool:
- The default configuration supports Altium. No modification is necessary if you're using Altium.
- Edit the
.allspice/columns.yml
file to match your BOM format. - Modify the
source_path
field to match your project file. - Adjust
group_by
if you need to organize your BOM differently. - Add a
variant
value if you're generating a BOM for a specific variant. - Modify the
bom.csv
file if you prefer a different filename for your BOM.
Running the Workflow in Your Repository
Once you've made the necessary modifications, the BOM should be generated correctly, matching your ECAD tool's BOM output. If you encounter issues (e.g., columns out of order or missing fields), inspect the columns.yml
file and ensure everything aligns with your BOM structure.
For debugging, compare your workflow with the demo repository you cloned. Often, issues stem from syntax errors in YAML files like columns.yml
or the workflow file.
Using LLM Tools for Debugging
If you're stuck, tools like ChatGPT, Claude, and CoPilot can help pinpoint syntax issues in your configuration files. Upload your files and error messages for more targeted assistance.
If you're still having trouble, feel free to contact us at support@allspice.io, or set up a live debugging session.
Next Steps
Congratulations! You've successfully set up CI-driven BOM generation. Now that you're familiar with this process, explore the rest of our growing library of Add-ons to further enhance your workflows.