aptly stage: provide incrementally increasing package version
Aptly stage builds DEB-packages adding +salsaci to the version number, providing only the variable SALSA_CI_DISABLE_VERSION_BUMP to control that suffix.
If the package is being installed by the package manager, it would be good to provide an incremental increasing version numbering. For one project I needed to modify salsa-ci.yml:
if ! echo "$SALSA_CI_DISABLE_VERSION_BUMP" | grep -qE '^(1|yes|true)$'; then
DATESTAMP=$(date +"%y%m%d%H%M%S")
sed -i -e "1 s/)/+${DATESTAMP}+salsaci)/" debian/changelog
fi
Version is getting the suffix like YYMMDDHHmmSS. Would it be OK if I provide a MR with such a change? Any suggestions or better ideas how to implement it are appreciate.