Move file reporting to Makefile

This commit is contained in:
Holger Obermaier
2022-03-01 14:40:05 +01:00
parent 77d5575791
commit c3d08eb732
2 changed files with 7 additions and 7 deletions

View File

@@ -76,4 +76,9 @@ RPM: scripts/cc-metric-collector.spec
# Build RPM and SRPM
@rpmbuild -ba --define="VERS $${VERS}" --rmsource --clean "$${SPECFILE}"
# Report RPMs and SRPMs when in GitHub Workflow
@printenv
@if [[ "$${GITHUB_ACTIONS}" == true ]]; then
@ RPMFILES="$${RPMDIR}"/*/*.rpm
@ SRPMFILES="$${SRPMDIR}"/*.src.rpm
@ echo ::set-output name="SRPM::$${SRPM}"
@ echo ::set-output name="RPM::$${RPM}"
@fi