Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

For a full diff see [`1.9.3...main`][1.9.3...main].

### Changed

- Adjusted `github/release/create` to allow creating releases in draft mode ([#214]), by [@localheinz]

## [`1.9.3`][1.9.3]

For a full diff see [`1.9.2...1.9.3`][1.9.2...1.9.3].
Expand Down Expand Up @@ -222,6 +226,7 @@ For a full diff see [`1.0.0...main`][1.0.0...main].
[#207]: https://github.com/ergebnis/.github/pull/207
[#208]: https://github.com/ergebnis/.github/pull/208
[#209]: https://github.com/ergebnis/.github/pull/209
[#214]: https://github.com/ergebnis/.github/pull/214

[@dependabot]: https://github.com/dependabot
[@jaymecd]: https://github.com/jaymecd
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@ For details, see [`actions/github/release/create/action.yaml`](actions/github/re

#### Inputs

- `draft`, optional: Whether to create a draft or a published release.
- `github-token`, required: The GitHub token of a user with permission to create a release.

#### Outputs
Expand Down
6 changes: 5 additions & 1 deletion actions/github/release/create/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ name: "Create a release"
description: "Creates a release"

inputs:
draft:
description: "Whether to create a draft or a published release"
required: false
default: "false"
github-token:
description: "GitHub token of a user with permission to create a release"
required: true
Expand All @@ -35,7 +39,7 @@ runs:

try {
const response = await github.rest.repos.createRelease({
draft: false,
draft: ${{ fromJSON(inputs.draft) }},
generate_release_notes: true,
name: process.env.RELEASE_TAG,
owner: context.repo.owner,
Expand Down