GitHub Actions: Set increment_version to patch outside of tags

When we release v.2.20.1 and add a commit, v2.20.1-SNAPSHOT is published,
which is not the correct version.
patch-level isn't right either always, but I think that's a good compromise for now.
This commit is contained in:
Christian Koop 2023-05-07 14:58:39 +02:00
parent 2c1f8bbdf8
commit edb62751ba
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3
1 changed files with 1 additions and 0 deletions

View File

@ -44,6 +44,7 @@ jobs:
with:
append_snapshot: ${{ github.ref_type == 'tag' && 'false' || 'true' }}
version: ${{ github.ref_type == 'tag' && github.ref_name || '' }}
increment_version: ${{ github.ref_type == 'tag' && '' || 'patch' }}
- name: Build with Maven
run: mvn -B -Duser.name="GitHub Actions on $GITHUB_REPOSITORY (id=$GITHUB_RUN_ID)" -DskipTests clean package