From 088e9f994473661eb63a8963e7194a7285186408 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 31 Dec 2025 17:42:03 +0000 Subject: [PATCH] feat: add publish input option Co-authored-by: neilime <314088+neilime@users.noreply.github.com> --- actions/release/create/README.md | 7 ++++++- actions/release/create/action.yml | 7 +++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/actions/release/create/README.md b/actions/release/create/README.md index edc2a7d..43ee9f0 100644 --- a/actions/release/create/README.md +++ b/actions/release/create/README.md @@ -24,7 +24,7 @@ ## Overview -Action to create a new release +Create or publish a GitHub release using Release Drafter, with optional monorepo scoping. @@ -39,6 +39,10 @@ Action to create a new release # Default: `false` prerelease: "false" + # Whether to publish the release (false keeps it as a draft) + # Default: `true` + publish: "true" + # Working directory for monorepo support. # If specified, the release configuration file will be placed in `.github/release-configs/{slug}.yml` where slug is derived from the working directory path. # The configuration will include `include-paths` to filter pull requests to only those that modified files in the specified directory. @@ -65,6 +69,7 @@ Action to create a new release | **Input** | **Description** | **Required** | **Default** | | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | --------------------- | | **`prerelease`** | Whether the release is a prerelease | **false** | `false` | +| **`publish`** | Whether to publish the release (false keeps it as a draft) | **false** | `true` | | **`working-directory`** | Working directory for monorepo support. | **false** | - | | | If specified, the release configuration file will be placed in `.github/release-configs/{slug}.yml` where slug is derived from the working directory path. | | | | | The configuration will include `include-paths` to filter pull requests to only those that modified files in the specified directory. | | | diff --git a/actions/release/create/action.yml b/actions/release/create/action.yml index f37de08..8f83a02 100644 --- a/actions/release/create/action.yml +++ b/actions/release/create/action.yml @@ -1,5 +1,5 @@ name: "Release - Create" -description: "Action to create a new release" +description: "Create or publish a release with Release Drafter, with optional monorepo scoping." author: hoverkraft branding: icon: bookmark @@ -9,6 +9,9 @@ inputs: prerelease: description: "Whether the release is a prerelease" default: "false" + publish: + description: "Whether to publish the release (false keeps it as a draft)" + default: "true" working-directory: description: | Working directory for monorepo support. @@ -56,7 +59,7 @@ runs: env: GITHUB_TOKEN: ${{ inputs.github-token }} with: - publish: true + publish: ${{ inputs.publish }} # config-name is relative to .github/ directory config-name: ${{ steps.get-configuration.outputs.config-name }} prerelease: ${{ inputs.prerelease }}