Skip to content

Commit

Permalink
fix: don't fail if the build log cannot be found
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsgruk committed May 1, 2024
1 parent 27d3f41 commit f21cdde
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions release-to-candidate/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f21cdde

Please sign in to comment.