Skip to content

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

Open
@ghilainm

Description

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.

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions