Skip to content

Commit

Permalink
chore: set error in code tags
Browse files Browse the repository at this point in the history
  • Loading branch information
carslen committed Oct 23, 2024
1 parent 4c7187d commit c7fc7f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/failure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ echo "This script will fail"
images=("alpine" "gibtsnicht:1.23.34")

for image in "${images[@]}"; do
error=$(docker pull "$image" 2>&1) || echo -e "Failed to pull $image\n\n Detailed error message:\n$error" >> "$GITHUB_STEP_SUMMARY"
error=$(docker pull "$image" 2>&1) || echo -e "Failed to pull $image\n\n Detailed error message:\n`$error`" >> "$GITHUB_STEP_SUMMARY"
done

0 comments on commit c7fc7f3

Please sign in to comment.