Skip to content

Commit 1d92317

Browse files
committed
fix(ci): collect local packit rpm artifacts
Signed-off-by: Drew Newberry <anewberry@nvidia.com>
1 parent a973b49 commit 1d92317

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎.github/workflows/rpm-package.yml‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,16 @@ jobs:
5959
run: |
6060
set -euo pipefail
6161
mkdir -p artifacts
62-
find ~/rpmbuild/RPMS/ -name '*.rpm' -exec cp {} artifacts/ \;
62+
for rpm_dir in "$HOME/rpmbuild/RPMS" "$PWD/${{ matrix.arch }}"; do
63+
if [ -d "$rpm_dir" ]; then
64+
find "$rpm_dir" -type f -name '*.rpm' -exec cp {} artifacts/ \;
65+
fi
66+
done
67+
if ! compgen -G 'artifacts/*.rpm' > /dev/null; then
68+
echo "::error::No RPM artifacts found"
69+
find "$PWD" -maxdepth 3 -type f -name '*.rpm' -print
70+
exit 1
71+
fi
6372
echo "=== Built RPMs ==="
6473
ls -lah artifacts/
6574

0 commit comments

Comments
 (0)