packit: Re-add post-upstream-clone to copr_build

In commit 940cc5cd1 I dropped the copr_build's `post-upstream-clone:`
action as it became identical to the global one, and I thought it would
be inherited. But it turns out that specifying `actions:` replaces the
global object entirely. That made release COPR builds fail on missing
spec file.

Copy the post-upstream-clone command and add a comment why it's
necessary. We'll have to keep this until
https://github.com/packit/packit-service/issues/1505 gets fixed.
This commit is contained in:
Martin Pitt 2023-04-11 06:25:06 +02:00 committed by Martin Pitt
parent a3694802b7
commit 732198e3aa
1 changed files with 7 additions and 0 deletions

View File

@ -49,6 +49,13 @@ jobs:
project: "cockpit-preview"
preserve_project: True
actions:
# same as the global one, but specifying actions: does not inherit
post-upstream-clone:
# build patched spec
- tools/node-modules make_package_lock_json
- cp tools/cockpit.spec .
# packit will compute and set the version by itself
- tools/fix-spec ./cockpit.spec 0
# HACK: tarball for releases (copr_build, koji, etc.), copying spec's Source0; this
# really should be the default, see https://github.com/packit/packit-service/issues/1505
create-archive: