Skip to content

Commit

Permalink
fix: capture build logs for fallback and new build
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsgruk authored Jul 23, 2024
1 parent ad6972e commit 4591701
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions release-to-candidate/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,13 @@ runs:
# shellcheck disable=SC2068
snapcraft remote-build ${snapcraft_args[@]} || true
# shellcheck disable=SC2086
cat snapcraft-${name}*${arch}*.txt || echo "Could not find build log"
if [[ "$SNAPCRAFT_REMOTE_BUILD_STRATEGY" == "force-fallback" ]]; then
# shellcheck disable=SC2086
cat ${name}_${arch}.txt || echo "Could not find build log"
else
# shellcheck disable=SC2086
cat snapcraft-${name}*${arch}*.txt || echo "Could not find build log"
fi
if [[ ! -e "${name}_${version}_${arch}.snap" ]]; then
echo "Could not find ${name}_${version}_${arch}.snap"
Expand Down

0 comments on commit 4591701

Please sign in to comment.