forked from rusefi/rusefi
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 1.08 KB
/
gen-ibom.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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