Skip to content

Commit

Permalink
Default AutoIncrement to Patch (prev. Minor)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfuchss committed Jan 16, 2024
1 parent aa3290a commit d665fb5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/maven-manual-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ on:
description: "The digit to be automatically incremented. E.g., Major, Minor, or Patch"
type: string
required: false
default: "Minor"
default: "Patch"
secrets:
PAT:
required: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/maven-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
description: "The digit to be automatically incremented. E.g., Major, Minor, or Patch"
type: string
required: false
default: "Minor"
default: "Patch"
secrets:
PAT:
required: true
Expand Down
6 changes: 3 additions & 3 deletions docs/Maven-Workflows.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Update Dependencies and Update Versions
:warning: It is important that the project either uses the revision property or has a single version property. Otherwise, the version will not be updated correctly.
* You can configure the optional property `create-tag` if you want to disable the creation of a tag.
* You can configure the optional property `auto-digit` if you want to change the default digit that shall be incremented on release. Default is Minor (2.1.0 -> 2.2.0). Possible values are `Major`, `Minor` and `Patch`.
* You can configure the optional property `auto-digit` if you want to change the default digit that shall be incremented on release. Default is Patch (2.1.0 -> 2.1.1). Possible values are `Major`, `Minor` and `Patch`.

```yml
name: Maven Dependency Updates
Expand All @@ -111,7 +111,7 @@ Create new Maven Release (only commits tags & branch and updates versions)

:warning: It is important that the project either uses the revision property or has a single version property. Otherwise, the version will not be updated correctly.

* You can configure the optional property `auto-digit` if you want to change the default digit that shall be incremented on release. Default is Minor (2.1.0 -> 2.2.0). Possible values are `Major`, `Minor` and `Patch`.
* You can configure the optional property `auto-digit` if you want to change the default digit that shall be incremented on release. Default is Patch (2.1.0 -> 2.1.1). Possible values are `Major`, `Minor` and `Patch`.

```yml
name: Maven Release
Expand All @@ -133,7 +133,7 @@ Create a manual release based on user input.

:warning: It is important that the project either uses the revision property or has a single version property. Otherwise, the version will not be updated correctly.

* You can configure the optional property `auto-digit` if you want to change the default digit that shall be incremented on release. Default is Minor (2.1.0 -> 2.2.0). Possible values are `Major`, `Minor` and `Patch`.
* You can configure the optional property `auto-digit` if you want to change the default digit that shall be incremented on release. Default is Patch (2.1.0 -> 2.1.1). Possible values are `Major`, `Minor` and `Patch`.

```yml
name: Maven Release (Manual)
Expand Down
4 changes: 2 additions & 2 deletions scripts/maven-version-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ MAJOR=$(echo $VERSION | cut -d '.' -f1)
MINOR=$(echo $VERSION | cut -d '.' -f2)
PATCH=$(echo $VERSION | cut -d '.' -f3)

# Verify AUTO_DIGIT environment variable selection: Possible Options: Major, Minor, Patch. Default: Minor
# Verify AUTO_DIGIT environment variable selection: Possible Options: Major, Minor, Patch. Default: Patch
if [[ $AUTO_DIGIT == "" ]]; then
AUTO_DIGIT="Minor"
AUTO_DIGIT="Patch"
fi
if [[ $AUTO_DIGIT != "Major" && $AUTO_DIGIT != "Minor" && $AUTO_DIGIT != "Patch" ]]; then
echo "Invalid AUTO_DIGIT value: $AUTO_DIGIT .. aborting. Allowed values: Major, Minor, or Patch"
Expand Down

0 comments on commit d665fb5

Please sign in to comment.