Skip to content

Commit 82a0b1f

Browse files
committed
fix badge image
1 parent db22f5b commit 82a0b1f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/update-milestone-badge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ jobs:
3434
if [ -z "$TITLE" ]; then
3535
URL="https://img.shields.io/badge/Roadmap-No%20milestone-lightgrey"
3636
else
37-
# URL-encode the title using jq
38-
ENCODED=$(echo -n "$TITLE" | jq -sRr @uri)
37+
# URL-encode the title using jq, then escape dashes for shields.io
38+
ENCODED=$(echo -n "$TITLE" | jq -sRr @uri | sed 's/-/--/g')
3939
URL="https://img.shields.io/badge/Roadmap-${ENCODED}-blue"
4040
fi
4141

0 commit comments

Comments
 (0)