Skip to content

Commit 7582ae6

Browse files
authored
Merge pull request #224 from ellisvalentiner/patch-1
Add prerelease option to GitHub release action
2 parents 9db84a9 + 9cf1c23 commit 7582ae6

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
88

99
For a full diff see [`1.10.0...main`][1.10.0...main].
1010

11+
### Added
12+
13+
- Added a `prerelease` input to `github/release/create` to allow creating prereleases ([#224]), by [@ellisvalentiner]
14+
1115
### Changed
1216

1317
- Started exposing a `RELEASE_HTML_URL` environment variable after publishing a release with `actions/github/release/publish` ([#183]), by [@localheinz]
@@ -242,8 +246,10 @@ For a full diff see [`1.0.0...main`][1.0.0...main].
242246
[#209]: https://github.com/ergebnis/.github/pull/209
243247
[#214]: https://github.com/ergebnis/.github/pull/214
244248
[#215]: https://github.com/ergebnis/.github/pull/215
249+
[#224]: https://github.com/ergebnis/.github/pull/224
245250

246251
[@dependabot]: https://github.com/dependabot
252+
[@ellisvalentiner]: https://github.com/ellisvalentiner
247253
[@jaymecd]: https://github.com/jaymecd
248254
[@localheinz]: https://github.com/localheinz
249255
[@lotyp]: https://github.com/lotyp

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,7 @@ For details, see [`actions/github/release/create/action.yaml`](actions/github/re
514514

515515
- `draft`, optional: Whether to create a draft or a published release.
516516
- `github-token`, required: The GitHub token of a user with permission to create a release.
517+
- `prerelease`, optional: Whether to identify the release as a prerelease or a full release.
517518

518519
#### Outputs
519520

actions/github/release/create/action.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ inputs:
1313
description: "Whether to create a draft or a published release"
1414
required: false
1515
default: "false"
16+
prerelease:
17+
description: "Whether to identify the release as a prerelease (true) or full release (false)"
18+
required: false
19+
default: "false"
1620
github-token:
1721
description: "GitHub token of a user with permission to create a release"
1822
required: true
@@ -43,7 +47,7 @@ runs:
4347
generate_release_notes: true,
4448
name: process.env.RELEASE_TAG,
4549
owner: context.repo.owner,
46-
prerelease: false,
50+
prerelease: ${{ fromJSON(inputs.prerelease) }},
4751
repo: context.repo.repo,
4852
tag_name: process.env.RELEASE_TAG,
4953
});

0 commit comments

Comments
 (0)