You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 18, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 18, 2024. It is now read-only.
Make :publish command to push only packages version tags #1183
Describe the bug
In our build process, we use floating tags to specify the latest successful build commit. In some cases, we merge multiple release branches at a time. As a result, multiple publish jobs are executed, and they push all tags from the repo (if I understand it correctly). As we have floating tags, it might happen that one push tried to push a floating one into the old position (commit), resulting in job failure.
To Reproduce
Steps to reproduce the behavior:
There is no standard way to reproduce it but you would emulate it.
Create a tag on some old commit of the trunk. "lastest-successful-build-main" for example
Trigger a build process
Wait till the build job started
Quickly re-create the tag with the same name on the last commit and push it wish force param to override the position
Publish commit should fail (see screenshot)
Expected behavior
Publish command should not publish tags which are not relevant to packages' versions
Screenshots
Platform Details (please complete the following information):
Activity
azlam-abdulsalam commentedon Jan 19, 2023
Added a new enhancment in January23 that resolves this issue