ci: Fix potentially problematic increment_version value

This commit is contained in:
Christian Koop 2024-02-26 11:33:02 +01:00
parent f87632c2e5
commit 041c146038
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3

View File

@ -33,7 +33,7 @@ jobs:
with: with:
append_snapshot: ${{ github.ref_type == 'tag' && 'false' || 'true' }} append_snapshot: ${{ github.ref_type == 'tag' && 'false' || 'true' }}
version: ${{ github.ref_type == 'tag' && github.ref_name || '' }} version: ${{ github.ref_type == 'tag' && github.ref_name || '' }}
increment_version: ${{ github.ref_type == 'tag' && '' || 'patch' }} increment_version: ${{ github.ref_type != 'tag' && 'patch' || '' }}
increment_version_only_if_not_snapshot_version: ${{ github.ref == 'refs/heads/development' && 'true' || 'false' }} increment_version_only_if_not_snapshot_version: ${{ github.ref == 'refs/heads/development' && 'true' || 'false' }}
- name: Build with Maven - name: Build with Maven