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