-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix version increment @ new release (#39)
fix version increment @ new release
- Loading branch information
1 parent
c3a7ce0
commit 5db4c91
Showing
3 changed files
with
93 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Release | ||
|
||
This action updates the version of the project using the semantic version and makes a release on GitHub. | ||
|
||
Note: The project must have [this structure](https://github.com/pagopa/template-java-spring-microservice). | ||
|
||
The action: | ||
|
||
- calls the `sbt-semver` template to update the version of the project | ||
- pushes to GitHub | ||
- make a new Tag and Release on GitHub | ||
|
||
The new version is saved in the output. | ||
|
||
## Usage | ||
|
||
``` yaml | ||
- name: Make Release | ||
id: release | ||
uses: pagopa/github-actions-template/sbt-release@v1 | ||
with: | ||
semver: 'major' | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
skip_ci: true | ||
beta: false | ||
jdk_version: 11 | ||
|
||
- run: echo "${{ steps.release.outputs.version }}" | ||
``` | ||
## Input | ||
| Param | Description | Required | Values | Default | | ||
|--------------|-----------------------------------------------------------|----------|--------------------------------------------------|---------| | ||
| semver | Select the new Semantic Version | **true** | `major`, `minor`, `patch`, `buildNumber`, `skip` | | | ||
| github_token | A GitHub token | **true** | `string` | | | ||
| 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` | | ||
|
||
## Output | ||
|
||
| Value | Description | | ||
|---------|-------------| | ||
| version | New Version | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Maven Semantic Version | ||
|
||
This action updates the version of the project using the semantic version passed in input. | ||
|
||
Note: The project must have [this structure](https://github.com/pagopa/template-java-spring-microservice). | ||
|
||
The action updates: | ||
|
||
- the pom version (`/pom.xml`) | ||
- the helm chart versions (`/helm/values-*.yaml`) | ||
- the openapi/swagger version (`/openapi/openapi.json` json or yaml) | ||
|
||
The new version is saved in the output. | ||
|
||
## Usage | ||
|
||
``` yaml | ||
- name: Update Semantic Version | ||
id: semver | ||
uses: pagopa/github-actions-template/sbt-semver@v1 | ||
with: | ||
semver: 'major' | ||
beta: false | ||
jdk_version: 11 | ||
|
||
- run: echo "${{ steps.semver.outputs.version }}" | ||
|
||
- run: echo "${{ steps.semver.outputs.chart_version }}" | ||
``` | ||
## Input | ||
| Param | Description | Required | Values | Default | | ||
|-------------|-----------------------------------------------------------|----------|--------------------------------------------------|---------| | ||
| semver | Select the new Semantic Version | **true** | `major`, `minor`, `patch`, `buildNumber`, `skip` | | | ||
| beta | True if it is a beta version (update canary helm version) | **true** | `boolean` | false | | ||
| jdk_version | Select the JDK version | false | `11`, `17` | `11` | | ||
|
||
## Output | ||
|
||
| Value | Description | | ||
|---------------|-------------------| | ||
| version | New App Version | | ||
| chart_version | New Chart Version | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters