Skip to content

Commit

Permalink
feat: Prelease (#48)
Browse files Browse the repository at this point in the history
prelease
  • Loading branch information
jacopocarlini authored May 8, 2024
1 parent 8ba4af2 commit 38203c7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions maven-release/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ The new version is saved in the output.
skip_ci: true
beta: false
jdk_version: 11
prerelease: false

- run: echo "${{ steps.release.outputs.version }}"
```
Expand All @@ -37,6 +38,7 @@ The new version is saved in the output.
| beta | True if it is a beta version (update canary helm version) | false | `boolean` | false |
| skip_ci | True if you want skip CI workflows on commit release | false | `boolean` | true |
| jdk_version | Select the JDK version | false | `11`, `17` | `11` |
| prerelease | True if it is a prerelease (no prod release) | false | `boolean` | false |

## Output

Expand Down
7 changes: 6 additions & 1 deletion maven-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ inputs:
options:
- 11
- 17
prerelease:
required: false
type: boolean
description: True if it is a prerelease (no prod release)
default: false


outputs:
Expand Down Expand Up @@ -88,4 +93,4 @@ runs:
name: Release ${{ steps.semver.outputs.version }}
makeLatest: latest
generateReleaseNotes: true
prerelease: ${{ (inputs.semver == 'buildNumber' && 'true') || 'false' }}
prerelease: ${{ inputs.prerelease }}

0 comments on commit 38203c7

Please sign in to comment.