From 58da0b995931cdd4a2b92b234086930757bf14e7 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Tue, 11 Aug 2026 21:28:16 +0300 Subject: [PATCH] Add binaries to the docs only of DOCS_BINARIES repo variable is truthy --- .github/workflows/docs.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 5d7fa59..ec95e16 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -32,6 +32,7 @@ jobs: - name: Build book run: cd docs && mdbook build - name: Wait for Build to complete + if: ${{ vars.DOCS_BINARIES == '1' }} uses: lewagon/wait-on-check-action@v1.9.1 with: ref: ${{ github.sha }} @@ -39,6 +40,7 @@ jobs: repo-token: ${{ secrets.GITHUB_TOKEN }} wait-interval: 30 - name: Find firmware binaries + if: ${{ vars.DOCS_BINARIES == '1' }} id: build_run run: | RUN_ID=$(gh api "repos/${{ github.repository }}/actions/workflows/build.yml/runs?head_sha=${{ github.sha }}&per_page=1" --jq '.workflow_runs[0].id') @@ -46,6 +48,7 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Download firmware binaries + if: ${{ vars.DOCS_BINARIES == '1' }} uses: actions/download-artifact@v4 with: github-token: ${{ secrets.GITHUB_TOKEN }} @@ -54,6 +57,7 @@ jobs: name: firmware-binary path: docs/build - name: Create shortcuts for firmware binaries + if: ${{ vars.DOCS_BINARIES == '1' }} working-directory: docs/build run: | for FQBN in esp32.esp32.*; do