From b3b266d82474813ed438804f96c79e67b5a4acd7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 27 Jun 2026 20:07:30 +0000 Subject: [PATCH] fix: ensure create-release job is skipped in dry-run (workflow_call) mode --- .github/workflows/build-distribute.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-distribute.yml b/.github/workflows/build-distribute.yml index 68a0c58..f7b4960 100644 --- a/.github/workflows/build-distribute.yml +++ b/.github/workflows/build-distribute.yml @@ -6,6 +6,11 @@ on: branches: - dev-v2 workflow_call: + inputs: + create_release: + description: 'Create a GitHub release (disabled by default for dry-run/PR builds)' + default: false + type: boolean permissions: contents: write id-token: write @@ -73,7 +78,7 @@ jobs: create-release: needs: build-and-release runs-on: ubuntu-latest - if: success() + if: success() && (github.event_name != 'workflow_call' || inputs.create_release == true) steps: - name: Checkout uses: actions/checkout@v4