From ebd7eca049e16804fb6e8e47ddfc9e1e7f476683 Mon Sep 17 00:00:00 2001 From: Christian Bager Bach Houmann Date: Sat, 24 Oct 2026 15:23:15 +0200 Subject: [PATCH] ci: add a dryRun input to the Prepare release dispatch --- .github/workflows/release-prepare.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-prepare.yml b/.github/workflows/release-prepare.yml index 67f0cc3..3e2c2d4 100644 --- a/.github/workflows/release-prepare.yml +++ b/.github/workflows/release-prepare.yml @@ -5,8 +5,8 @@ # to the reusable prepare workflow, which re-confirms the SHA is still the # default-branch head and opens/refreshes the standing release PR. # -# Escape hatch: workflow_dispatch lets you plan manually (e.g. a dry-run smoke -# test before your first release) without waiting for a CI completion. +# Escape hatch: workflow_dispatch lets you plan manually without waiting for a +# CI completion. Set dryRun to plan without opening or refreshing the release PR. name: Prepare release @@ -21,6 +21,11 @@ on: description: "Commit SHA to plan from (defaults to the default-branch head)" required: false type: string + dryRun: + description: "Plan only: compute the version and notes, open no release PR" + required: false + type: boolean + default: false permissions: {} @@ -51,6 +56,6 @@ jobs: target-sha: ${{ github.event.workflow_run.head_sha || inputs.targetSha }} release-bot-app-slug: metaedit-release-bot app-id: ${{ vars.RELEASE_APP_ID }} - # dry-run: true # plan only; skip opening the PR (smoke test) + dry-run: ${{ inputs.dryRun == true }} secrets: release-app-private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}