Skip to content

Commit

Permalink
add step-status
Browse files Browse the repository at this point in the history
  • Loading branch information
dhuangnm authored and dhuangnm committed Sep 13, 2024
1 parent a14ee0e commit 0c60a90
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/scripts/step-status
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash -e

# echo "green encased checkmark" if "${1} == 0"
# echo "red X" if "${1} != 0"

STEP_STATUS=${1}

if [ "$STEP_STATUS" -eq 0 ]; then
# green check
echo -e "\xE2\x9C\x85"
else
# red x
echo -e "\xE2\x9D\x8C"
fi

0 comments on commit 0c60a90

Please sign in to comment.