2021-02-06 10:43:43 -08:00
|
|
|
name: Generate Interactive BOMs
|
|
|
|
|
|
|
|
on:
|
2021-02-08 21:35:40 -08:00
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * *'
|
2023-03-13 13:40:24 -07:00
|
|
|
workflow_dispatch:
|
2021-02-06 10:43:43 -08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
generate:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-09-05 06:09:12 -07:00
|
|
|
- uses: actions/checkout@v4
|
2023-01-29 01:43:27 -08:00
|
|
|
|
|
|
|
- name: Checkout Submodules
|
|
|
|
run: |
|
|
|
|
git submodule update --init --depth=1 hardware/InteractiveHtmlBom
|
2021-02-06 10:43:43 -08:00
|
|
|
|
|
|
|
- name: Install prerequisite software
|
|
|
|
run: |
|
2023-02-25 15:07:31 -08:00
|
|
|
sudo bash misc/actions/add-ubuntu-latest-apt-mirrors.sh
|
2023-03-13 13:40:24 -07:00
|
|
|
sudo add-apt-repository --yes ppa:kicad/kicad-7.0-releases
|
2021-10-25 05:22:31 -07:00
|
|
|
sudo apt-get install kicad sshpass
|
2021-02-06 10:43:43 -08:00
|
|
|
|
2021-10-25 05:22:31 -07:00
|
|
|
- name: Set SSH variables
|
2021-02-06 10:43:43 -08:00
|
|
|
env:
|
|
|
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
|
|
|
|
run: |
|
|
|
|
if [ "${{github.ref}}" = "refs/heads/master" ]; then
|
2023-07-26 06:29:32 -07:00
|
|
|
echo "RUSEFI_SSH_SERVER=${{secrets.RUSEFI_SSH_SERVER}}" >> $GITHUB_ENV
|
|
|
|
echo "RUSEFI_SSH_USER=${{secrets.RUSEFI_SSH_USER}}" >> $GITHUB_ENV
|
|
|
|
echo "RUSEFI_SSH_PASS=${{secrets.RUSEFI_SSH_PASS}}" >> $GITHUB_ENV
|
2021-02-06 10:43:43 -08:00
|
|
|
fi
|
|
|
|
|
|
|
|
- name: Generate documentation
|
|
|
|
env:
|
|
|
|
INTERACTIVE_HTML_BOM_NO_DISPLAY: 'true'
|
|
|
|
run: bash ./misc/jenkins/generate_ibom/gen_upload_ibom.sh
|