From 7dccc94e2b9428b93d96ea7bf140cf597dd2c565 Mon Sep 17 00:00:00 2001 From: Carlos Mogas da Silva Date: Wed, 4 Dec 2024 16:12:19 +0000 Subject: [PATCH 1/2] fix error messages --- entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 0277bec..caf9cc9 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -15,13 +15,13 @@ cd $(dirname ${SPEC}) spectool -g ${SPEC} if [ $? -ne 0 ]; then - echo "::error Failed to download sources" + echo "::error::Failed to download sources" exit 1 fi mock -r "${SYSTEM}-${ARCH}" --buildsrpm --spec ${SPEC_NAME} --sources . --resultdir result if [ $? -ne 0 ]; then - echo "::error Failed to build SRPM" + echo "::error::Failed to build SRPM" exit 1 fi echo "::endgroup::" @@ -35,7 +35,7 @@ if [ ${NOCHECK,,} == "true"]; then fi mock -r "${SYSTEM}-${ARCH}" --resultdir result ${OPTS} ${SRPM} if [ $? -ne 0 ]; then - echo "::error Failed to build RPM" + echo "::error::Failed to build RPM" exit 1 fi echo "::endgroup::" From 914981620fd5df5eda01f75ce475c8b9088ba496 Mon Sep 17 00:00:00 2001 From: Carlos Mogas da Silva Date: Wed, 4 Dec 2024 16:14:35 +0000 Subject: [PATCH 2/2] Add debug lines --- entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index caf9cc9..d80a363 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -8,6 +8,10 @@ NOCHECK=${INPUT_NOCHECK} 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 "Building ${SPEC_NAME} for ${CONFIGURATION}" echo "::group::Building SRPM"