Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
fawadasaurus authored Oct 30, 2023
1 parent ca1d601 commit e2136d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ output=$(wick registry push "$(basename "$manifest_path")" $tag_flags 2>&1)
if [[ $? -ne 0 ]]; then
# The wick command failed. Extract the last line of the error output.
last_line=$(echo "$output" | awk '/Failed to push the package:/ {line=$0} END {print line}')
echo "::error file=$manifest_path::wick command failed with output: $last_line"
echo "::error::wick command failed with output: $last_line"
exit 1
fi

Expand All @@ -50,4 +50,4 @@ processed_output=$(echo "$output" | grep 'reference' | grep -E '"(\S*)"' | cut -
echo $processed_output

# Write the processed output to the GITHUB_OUTPUT environment file
echo "reference=$processed_output" >> "$GITHUB_OUTPUT"
echo "::notice::reference=$processed_output" >> "$GITHUB_OUTPUT"

0 comments on commit e2136d5

Please sign in to comment.