feat: add draft_only option to release workflow for review before publishing
This commit is contained in:
parent
a5963e9a2b
commit
7b54326889
1 changed files with 14 additions and 0 deletions
14
.github/workflows/create-release.yml
vendored
14
.github/workflows/create-release.yml
vendored
|
|
@ -11,6 +11,11 @@ on:
|
|||
description: 'Release notes (markdown) - generated by Claude'
|
||||
required: true
|
||||
type: string
|
||||
draft_only:
|
||||
description: 'Create draft release only (do not publish)'
|
||||
required: false
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
concurrency:
|
||||
group: release-${{ github.event.inputs.version || github.ref || github.run_id }}
|
||||
|
|
@ -442,6 +447,7 @@ jobs:
|
|||
gh release upload "${TAG}" release/pulse-auto-update.sh
|
||||
|
||||
- name: Publish release
|
||||
if: ${{ github.event.inputs.draft_only != 'true' }}
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
|
|
@ -466,7 +472,14 @@ jobs:
|
|||
echo "✓ Release published as latest: ${TAG}"
|
||||
fi
|
||||
|
||||
- name: Skip publish (draft only)
|
||||
if: ${{ github.event.inputs.draft_only == 'true' }}
|
||||
run: |
|
||||
echo "Draft-only mode: Release remains as draft for review"
|
||||
echo "View draft at: ${{ steps.create_release.outputs.release_url }}"
|
||||
|
||||
- name: Trigger Docker image publish
|
||||
if: ${{ github.event.inputs.draft_only != 'true' }}
|
||||
continue-on-error: true # Non-fatal if dispatch fails
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.WORKFLOW_PAT }}
|
||||
|
|
@ -481,6 +494,7 @@ jobs:
|
|||
echo "✓ Docker publish workflow dispatched"
|
||||
|
||||
- name: Trigger demo server update
|
||||
if: ${{ github.event.inputs.draft_only != 'true' }}
|
||||
continue-on-error: true # Non-fatal if dispatch fails
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.WORKFLOW_PAT }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue