Internal release: Version file on GitLab repo is updated multiple times
Today, while testing the creation of an internal package, the job that triggered the InternalRelease::Release
service was tried. This caused the VERSION
file on the GitLab repo to be updated multiple times:
https://dev.gitlab.org/gitlab/gitlab-ee/-/commits/17-7-stable-ee?ref_type=heads
The job needs to be adjusted to be idempotent: Only update the VERSION
file once regardless if the service is triggered multiple times for the same version
Exit Criteria
-
No commit is made to the VERSION
file if it already has the intended internal release version
Edited by Dat Tang