From 3c1525e1847b1a04894b2303ed51eadaaae551d1 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Wed, 22 Jun 2022 09:04:53 -0400 Subject: [PATCH] fancy --- .github/workflows/create-board.yaml | 38 +++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/create-board.yaml diff --git a/.github/workflows/create-board.yaml b/.github/workflows/create-board.yaml new file mode 100644 index 0000000..a26b63b --- /dev/null +++ b/.github/workflows/create-board.yaml @@ -0,0 +1,38 @@ +name: Check All + +on: [ push, pull_request ] + +jobs: + build-firmware: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + with: + 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 + if: ${{env.NOCOMMIT != 'true'}} + uses: ad-m/github-push-action@master + with: + github_token: ${{ github.token }} + branch: ${{ steps.extract_branch.outputs.branch }} +