From 3e69be20e539a040f4c0791046f4ab0e6f60e9ee Mon Sep 17 00:00:00 2001 From: g-samroberts Date: Thu, 5 Feb 2026 17:42:00 -0800 Subject: [PATCH] Add wofklow_dispatch for manual runs. --- .github/workflows/release-notes.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml index 33a5af968a..044c37b9a2 100644 --- a/.github/workflows/release-notes.yml +++ b/.github/workflows/release-notes.yml @@ -5,6 +5,16 @@ name: 'Generate Release Notes' on: release: types: ['created'] + workflow_dispatch: + inputs: + version: + description: 'New version (e.g., v1.2.3)' + required: true + type: 'string' + body: + description: 'Release notes body' + required: true + type: 'string' jobs: generate-release-notes: @@ -27,11 +37,14 @@ jobs: - name: 'Get release information' id: 'release_info' run: | - echo "VERSION=${{ github.event.release.tag_name }}" >> "$GITHUB_OUTPUT" + VERSION="${{ github.event.inputs.version || github.event.release.tag_name }}" + BODY="${{ github.event.inputs.body || github.event.release.body }}" + + echo "VERSION=${VERSION}" >> "$GITHUB_OUTPUT" # Use a heredoc to preserve multiline release body echo 'RAW_CHANGELOG<> "$GITHUB_OUTPUT" - echo "${{ github.event.release.body }}" >> "$GITHUB_OUTPUT" + echo "${BODY}" >> "$GITHUB_OUTPUT" echo 'EOF' >> "$GITHUB_OUTPUT" env: GH_TOKEN: '${{ secrets.GITHUB_TOKEN }}'