Allow bumping versions in `/docs` only

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:
Pierangelo Di Pilato 2024-07-01 13:05:59 +02:00
parent efdf0ba866
commit 6e0bf93cf4
No known key found for this signature in database
GPG Key ID: 4C2EED509AFD8EC2
1 changed files with 9 additions and 0 deletions

View File

@ -5,6 +5,14 @@ on:
version:
description: 'Version to bump (without prepending "v")'
required: true
maven-modules:
description: "Whether to bump versions in pom.xml files"
type: choice
required: true
default: 'true'
options:
- 'true'
- 'false'
jobs:
bump:
@ -19,6 +27,7 @@ jobs:
with:
java-version: 8
- name: Bump version using Maven
if: ${{ inputs.maven-modules == 'true' }}
run: './mvnw versions:set -DnewVersion=$NEW_VERSION -DgenerateBackupPoms=false -B'
- name: Bump version in docs
if: ${{ !endsWith(github.event.inputs.version, 'SNAPSHOT') }}