Don't run a snapshot deployment if the version is not a snapshot.
Don't run a release deployment if the version is a snapshot.
Why
The release process has been changed to accommodate the branch protection, and hence, the main will contain a release version until the PR with the snapshot version is merged.
Therefore, the snapshot GitHub action will run when it should not!
In addition, let's avoid the corner case where the pom.xml file contains a SNAPSHOT version and the inputs.ref points to that particular git reference.
What
Why
The release process has been changed to accommodate the branch protection, and hence, the main will contain a release version until the PR with the snapshot version is merged.
Therefore, the snapshot GitHub action will run when it should not!
In addition, let's avoid the corner case where the
pom.xml
file contains a SNAPSHOT version and theinputs.ref
points to that particular git reference.Test
Issues
Caused by https://github.com/elastic/ecs-logging-java/pull/226