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:
parent
2c1f8bbdf8
commit
edb62751ba
|
@ -44,6 +44,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' }}
|
||||||
|
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -B -Duser.name="GitHub Actions on $GITHUB_REPOSITORY (id=$GITHUB_RUN_ID)" -DskipTests clean package
|
run: mvn -B -Duser.name="GitHub Actions on $GITHUB_REPOSITORY (id=$GITHUB_RUN_ID)" -DskipTests clean package
|
||||||
|
|
Loading…
Reference in New Issue