Update clone.yml

This commit is contained in:
Dariusz L
2026-06-16 20:06:06 +02:00
parent 23e8526f9f
commit 4889703c1c
+7
View File
@@ -65,6 +65,7 @@ jobs:
if [ ! -f CLONE.md ]; then
shields="https://img.shields.io/badge/dynamic/json?color=success&label=Clone&query=count&url="
shields_for_the_badge="https://img.shields.io/badge/dynamic/json?color=2F80ED&label=Clone&query=count&url="
url="https://gist.githubusercontent.com/${{ github.actor }}/${{ steps.set_id.outputs.GIST }}/raw/clone.json"
repo="https://github.com/MShawon/github-clone-count-badge"
echo ''> CLONE.md
@@ -79,6 +80,12 @@ jobs:
**HTML**
```html' >> CLONE.md
echo "<a href='$repo'><img alt='GitHub Clones' src='$shields$url&logo=github'></a>" >> CLONE.md
echo '
```
**HTML (for-the-badge)**
```html' >> CLONE.md
echo "<a href='$repo'><img alt='GitHub Clones' src='$shields_for_the_badge$url&logo=github&style=for-the-badge'></a>" >> CLONE.md
echo '```' >> CLONE.md
git add CLONE.md