Skip to content

Commit e056d1b

Browse files
authored
Allow bumping versions in /docs only (#648)
This will allow changing the version in the documentation website when a new release is published. Signed-off-by: Pierangelo Di Pilato <[email protected]>
1 parent efdf0ba commit e056d1b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/bump.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ on:
55
version:
66
description: 'Version to bump (without prepending "v")'
77
required: true
8+
maven-modules:
9+
description: "Whether to bump versions in pom.xml files"
10+
type: choice
11+
required: true
12+
default: 'true'
13+
options:
14+
- 'true'
15+
- 'false'
816

917
jobs:
1018
bump:
@@ -19,6 +27,7 @@ jobs:
1927
with:
2028
java-version: 8
2129
- name: Bump version using Maven
30+
if: ${{ inputs.maven-modules == 'true' }}
2231
run: './mvnw versions:set -DnewVersion=$NEW_VERSION -DgenerateBackupPoms=false -B'
2332
- name: Bump version in docs
2433
if: ${{ !endsWith(github.event.inputs.version, 'SNAPSHOT') }}

0 commit comments

Comments
 (0)