GitHub Actions: Don't increment snapshot versions on dev branch

This commit is contained in:
Christian Koop 2023-06-17 14:37:53 +02:00
parent 4c32936367
commit a11c6aa691
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3
1 changed files with 1 additions and 0 deletions

View File

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