2022-06-18 06:44:15 -07:00
|
|
|
name: Check All
|
|
|
|
|
|
|
|
on: [ push, pull_request ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-firmware:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
2023-07-12 15:58:50 -07:00
|
|
|
# MY_REPO_PAT is about accessing private submodules
|
|
|
|
# todo: how do we use same script both with and without MY_REPO_PAT? would two conditional versions of 'uses: actions/checkout@v2' be needed?
|
|
|
|
# https://stackoverflow.com/questions/72781712/how-to-add-private-git-repo-as-a-submodule-in-another-git-repo:
|
|
|
|
# token: ${{ secrets.MY_REPO_PAT }}
|
2022-06-18 06:44:15 -07:00
|
|
|
submodules: recursive
|
|
|
|
|
|
|
|
- name: 1. Build Docker
|
|
|
|
run: |
|
|
|
|
bash hellen-one/bin/step1_build_hellen-one_docker.sh
|
|
|
|
|
|
|
|
- name: 2. Copy
|
|
|
|
run: |
|
|
|
|
bash hellen-one/bin/step2_copy_with_docker.sh
|
|
|
|
|
|
|
|
- name: 3. Create Board
|
|
|
|
run: |
|
|
|
|
bash hellen-one/bin/step3_create_board_with_docker.sh
|
|
|
|
|
|
|
|
- name: Commit fresh board files
|
|
|
|
env:
|
|
|
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
|
|
|
|
run: |
|
|
|
|
bash hellen-one/bin/gha-commit.sh
|
|
|
|
|
|
|
|
- name: Push board files
|
2023-07-12 16:01:42 -07:00
|
|
|
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && env.NOCOMMIT != 'true'}}
|
2022-06-18 06:44:15 -07:00
|
|
|
uses: ad-m/github-push-action@master
|
|
|
|
with:
|
|
|
|
github_token: ${{ github.token }}
|
|
|
|
branch: ${{ steps.extract_branch.outputs.branch }}
|