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 <pierdipi@redhat.com>
This commit is contained in:
parent
efdf0ba866
commit
e056d1b2d8
|
@ -5,6 +5,14 @@ on:
|
||||||
version:
|
version:
|
||||||
description: 'Version to bump (without prepending "v")'
|
description: 'Version to bump (without prepending "v")'
|
||||||
required: true
|
required: true
|
||||||
|
maven-modules:
|
||||||
|
description: "Whether to bump versions in pom.xml files"
|
||||||
|
type: choice
|
||||||
|
required: true
|
||||||
|
default: 'true'
|
||||||
|
options:
|
||||||
|
- 'true'
|
||||||
|
- 'false'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
bump:
|
bump:
|
||||||
|
@ -19,6 +27,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
java-version: 8
|
java-version: 8
|
||||||
- name: Bump version using Maven
|
- name: Bump version using Maven
|
||||||
|
if: ${{ inputs.maven-modules == 'true' }}
|
||||||
run: './mvnw versions:set -DnewVersion=$NEW_VERSION -DgenerateBackupPoms=false -B'
|
run: './mvnw versions:set -DnewVersion=$NEW_VERSION -DgenerateBackupPoms=false -B'
|
||||||
- name: Bump version in docs
|
- name: Bump version in docs
|
||||||
if: ${{ !endsWith(github.event.inputs.version, 'SNAPSHOT') }}
|
if: ${{ !endsWith(github.event.inputs.version, 'SNAPSHOT') }}
|
||||||
|
|
Loading…
Reference in New Issue