File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -46,16 +46,16 @@ jobs:
4646 run : |
4747 set -euo pipefail
4848
49- PREFIX="https://github.com/${REPO}/wiki/"
5049 BADGE_DIR="wiki/${REPO}"
50+ PREFIX="https://github.com/${REPO}/${BADGE_DIR}/"
5151
5252 COMMENT=""
5353
5454 if [ -d "$BADGE_DIR" ]; then
5555 for f in "$BADGE_DIR"/*.svg; do
5656 [ -e "$f" ] || continue
5757 FILE=$(basename "$f")
58- COMMENT+="\n "
58+ COMMENT+="[ ]() "
5959 done
6060 fi
6161
Original file line number Diff line number Diff line change @@ -44,12 +44,14 @@ runs:
4444 case "$RESULT" in
4545 success) COLOR=green ;;
4646 failure) COLOR=red ;;
47- cancelled) COLOR=gray ;;
48- *) COLOR=gray ;;
47+ cancelled) COLOR=blue ;;
48+ *) COLOR=blue ;;
4949 esac
5050
5151 ENCODED_NAME=$(echo "$NAME" | sed 's/-/--/g')
52+ echo "NAME: $NAME"
5253 BADGE_URL="https://img.shields.io/badge/${ENCODED_NAME}-${RESULT}-${COLOR}.svg"
54+ echo "BADGE_URL: $BADGE_URL"
5355
5456 curl -s -o "wiki/${GITHUB_REPOSITORY}/${NAME}-badge.svg" "$BADGE_URL"
5557 done
You can’t perform that action at this time.
0 commit comments