2021-02-06 10:43:43 -08:00
|
|
|
name: Generate Interactive Pinouts
|
|
|
|
|
|
|
|
on:
|
2021-02-08 21:35:40 -08:00
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * *'
|
2021-04-27 15:35:05 -07:00
|
|
|
workflow_dispatch:
|
2021-02-06 10:43:43 -08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
generate:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Install prerequisite software
|
2021-07-21 17:30:53 -07:00
|
|
|
env:
|
|
|
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
|
2021-02-06 10:43:43 -08:00
|
|
|
run: |
|
2021-10-13 18:01:21 -07:00
|
|
|
misc/actions/pinouts-install.sh
|
2021-07-12 16:09:01 -07:00
|
|
|
echo "::add-path::`pwd`/yqdir/"
|
2021-02-06 10:43:43 -08:00
|
|
|
|
|
|
|
- name: Set FTP variables
|
|
|
|
env:
|
|
|
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
|
|
|
|
run: |
|
|
|
|
if [ "${{github.ref}}" = "refs/heads/master" ]; then
|
2021-10-21 16:42:06 -07:00
|
|
|
echo "::set-env name=RUSEFI_SSH_SERVER::${{secrets.RUSEFI_SSH_SERVER}}";
|
2021-10-22 06:07:35 -07:00
|
|
|
echo "::set-env name=RUSEFI_SSH_USER::${{secrets.RUSEFI_SSH_USER}}";
|
|
|
|
echo "::set-env name=RUSEFI_SSH_PASS::${{secrets.RUSEFI_SSH_PASS}}";
|
2021-02-06 10:43:43 -08:00
|
|
|
fi
|
|
|
|
|
|
|
|
- name: Generate documentation
|
|
|
|
run: bash ./misc/jenkins/generate_pinouts/gen_upload_pinouts.sh
|