elastic / ecs-logging-java

https://www.elastic.co/guide/en/ecs-logging/java/current/intro.html
Apache License 2.0
139 stars 74 forks source link

ci(snapshot): skip deploy if no snapshot version or release version #238

Closed v1v closed 4 months ago

v1v commented 4 months ago

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 the inputs.ref points to that particular git reference.

Test

image

 Issues

Caused by https://github.com/elastic/ecs-logging-java/pull/226