From f21cddef5ad72bdd810042813c93d170e2020db7 Mon Sep 17 00:00:00 2001 From: Jon Seager Date: Wed, 1 May 2024 17:17:30 +0100 Subject: [PATCH] fix: don't fail if the build log cannot be found --- release-to-candidate/action.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/release-to-candidate/action.yaml b/release-to-candidate/action.yaml index 4acff84..92fa8a0 100644 --- a/release-to-candidate/action.yaml +++ b/release-to-candidate/action.yaml @@ -119,12 +119,10 @@ runs: pushd "$project_root" && git init || exit # shellcheck disable=SC2068 - if ! snapcraft remote-build ${snapcraft_args[@]}; then - cat "${name}_${arch}.txt" - fi + snapcraft remote-build ${snapcraft_args[@]} || true # shellcheck disable=SC2086 - cat ${name}_${arch}*.txt + cat ${name}_${arch}*.txt || echo "Could not find build log" if [[ ! -e "${name}_${version}_${arch}.snap" ]]; then echo "Could not find ${name}_${version}_${arch}.snap"