From 75258d7d9bd28a7d56e4130d76c0e002e95e7adc 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release-to-candidate/action.yaml b/release-to-candidate/action.yaml index 4acff84..823adfb 100644 --- a/release-to-candidate/action.yaml +++ b/release-to-candidate/action.yaml @@ -120,11 +120,11 @@ runs: # shellcheck disable=SC2068 if ! snapcraft remote-build ${snapcraft_args[@]}; then - cat "${name}_${arch}.txt" + cat ${name}_${arch}*.txt || echo "Could not find build log" fi # 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"