Skip to content

Commit 661933a

Browse files
committed
Add GitHub clone badge to README, fix workflow push
- Add dynamic clone count badge (600 total clones from gist) - Fix push: use HEAD:main instead of origin main (detached HEAD issue)
1 parent eeabbbc commit 661933a

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/clone-count.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,4 @@ jobs:
9999
GH_REPO: ${{ github.repository }}
100100
run: |
101101
git remote set-url origin "https://x-access-token:$SECRET_TOKEN@github.com/$GH_REPO.git"
102-
git push origin main || echo "Nothing to push"
102+
git push origin HEAD:main || echo "Nothing to push"

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
[![PyPI Downloads](https://img.shields.io/pypi/dw/encode-toolkit?style=flat&label=PyPI%20Downloads)](https://pypi.org/project/encode-toolkit/)
2020
[![npm version](https://img.shields.io/npm/v/encode-toolkit.svg)](https://www.npmjs.com/package/encode-toolkit)
2121
[![NPM Downloads](https://img.shields.io/npm/dw/encode-toolkit?style=flat&label=NPM%20Downloads)](https://www.npmjs.com/package/encode-toolkit)
22+
[![GitHub Clones](https://img.shields.io/badge/dynamic/json?color=success&label=Clones&query=count&url=https://gist.githubusercontent.com/ammawla/8fdeb4cd92776739d329df9afd942b2e/raw/clone.json&logo=github)](https://github.com/ammawla/encode-toolkit)
2223
[![smithery badge](https://smithery.ai/badge/encode-toolkit)](https://smithery.ai/server/encode-toolkit)
2324
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.18917519.svg)](https://doi.org/10.5281/zenodo.18917519)
2425

0 commit comments

Comments
 (0)