diff --git a/entrypoint.sh b/entrypoint.sh index a1e3762..9928f41 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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