mirror of
https://github.com/songoda/SongodaCore.git
synced 2025-02-23 06:51:19 +01:00
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
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user