Generate Interactive BOMs #57
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate Interactive BOMs | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
jobs: | |
generate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Checkout Submodules | |
run: | | |
git submodule update --init --depth=1 hardware/InteractiveHtmlBom | |
- name: Install prerequisite software | |
run: | | |
sudo bash misc/actions/add-ubuntu-latest-apt-mirrors.sh | |
sudo add-apt-repository --yes ppa:kicad/kicad-7.0-releases | |
sudo apt-get install kicad sshpass | |
- name: Set SSH variables | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | |
run: | | |
if [ "${{github.ref}}" = "refs/heads/master" ]; then | |
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 | |
fi | |
- name: Generate documentation | |
env: | |
INTERACTIVE_HTML_BOM_NO_DISPLAY: 'true' | |
run: bash ./misc/jenkins/generate_ibom/gen_upload_ibom.sh |