diffplug / spotless-changelog

The changelog is cast, let the versions fall where they may.
Apache License 2.0
45 stars 2 forks source link

When using the same branch and tag name `changelogPush` fails with Error! Expected OK, got UP_TO_DATE. #54

Open ghilainm opened 1 month ago

ghilainm commented 1 month ago

When I use the same name for both the branch and the tag (e.g., a release branch named 'release/xxx' and a tag named 'release/xxx'), the changelogPush task fails.

Output:
> Task :changelogCheck
push refs/heads/release/xxx to origin https://[MASKED]:[MASKED]@your-git-server.com/your-project.git
  UP_TO_DATE (null)...e818ce24f4ece898ea2c61d955ec7e7823e26d9f
> Task :changelogBump
> Task :changelogPush
push refs/tags/release/xxx to origin https://[MASKED]:[MASKED]@your-git-server.com/your-project.git
  OK 0000000000000000000000000000000000000000...67149b2ae0f2d1c8ac3e2d0802b4bad51938307d fastForward
push refs/tags/release/xxx to origin https://[MASKED]:[MASKED]@your-git-server.com/your-project.git
  UP_TO_DATE (null)...67149b2ae0f2d1c8ac3e2d0802b4bad51938307d
> Task :changelogPush FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':changelogPush'.
> Error! Expected OK, got UP_TO_DATE.
nedtwigg commented 1 month ago

PR welcome :)