Pre-release need to go against a side tag
The pre-releases of a package, usually beta releases, need to go against a side tag, since they usually have major changes that depend on many other packages. This means that they cannot be automatically and individually updated, they need to go all together against a side tag.
IIUC, this is about implementing a run condition so that a different koji_build/bodhi_update job will run under different circumstancies (in this case version is/isn't a pre-release).
We could implement this as a job-level action that would run as part of pre-check here: https://github.com/packit/packit-service/blob/11d4722765650d350cab89ba8ec80fcfd0736cfa/packit_service/worker/jobs.py#L705-L713
Git repo wouldn't be cloned at that time, but we could pass the event dict (or a sanitized subset of it) as an environment variable to the action.
Naming suggestions (from refinement):
-
when(though is not very explicit about what the contents should be) -
require(require SUCCESS exit code of the action to proceed) -
precondition
Maybe also provide some helpful environment variables in addition to whole config.