Fix the spectool parameter (and some other general cleanup)
Some checks failed
Build docker image / build-and-publish (push) Has been cancelled

This commit is contained in:
Carlos Mogas da Silva 2024-12-05 16:31:35 +00:00
parent 62eb51cd6d
commit 3ae1081564

View file

@ -15,16 +15,16 @@ for SPEC in ${SPECS[@]}; do
SPEC_NAME=$(basename ${SPEC})
CONFIGURATION="${SYSTEM}-${ARCH}"
echo "::debug::spec file: ${INPUT_SPEC}"
echo "::debug::target: ${INPUT_SYSTEM}-${INPUT_ARCH}"
echo "::debug::nocheck: ${INPUT_NOCHECK}"
echo "::debug::spec file: ${SPEC}"
echo "::debug::target: ${SYSTEM}-${ARCH}"
echo "::debug::nocheck: ${NOCHECK}"
echo "Building ${SPEC_NAME} for ${CONFIGURATION}"
echo "::group::Building SRPM"
cd $(dirname ${SPEC})
spectool -g ${SPEC}
spectool -g ${SPEC_NAME}
if [ $? -ne 0 ]; then
echo "::error::Failed to download sources"
exit 1
@ -54,4 +54,5 @@ for SPEC in ${SPECS[@]}; do
RPMS=i$(grep Wrote result/build.log | grep "/RPMS/" | cut -d" " -f 2)
echo "::debug::rpms: ${RPMS}"
echo "rpms=${RPMS}" >> ${GITHUB_OUTPUT}
cd -
done