From 8a18e4ec306c30f22531c9732bcebd6f8184b8d4 Mon Sep 17 00:00:00 2001 From: Dariusz L Date: Sun, 29 Jun 2025 00:24:49 +0200 Subject: [PATCH] Update clone.yml --- .github/workflows/clone.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/clone.yml b/.github/workflows/clone.yml index 11630e1..6b5bcfe 100644 --- a/.github/workflows/clone.yml +++ b/.github/workflows/clone.yml @@ -19,7 +19,7 @@ jobs: run: | curl --user "${{ github.actor }}:${{ secrets.SECRET_TOKEN }}" \ -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/Azornes/Comfyui-LayerForge/traffic/clones \ + https://api.github.com/repos/${{ github.repository }}/traffic/clones \ > clone.json - name: create gist and download previous count @@ -54,7 +54,7 @@ jobs: - name: Update gist with latest count run: | content=$(sed -e 's/\\/\\\\/g' -e 's/\t/\\t/g' -e 's/\"/\\"/g' -e 's/\r//g' "clone.json" | sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g') - echo '{"description": "Azornes/Comfyui-LayerForge clone statistics", "files": {"clone.json": {"content": "'"$content"'"}}}' > post_clone.json + echo '{"description": "${{ github.repository }} clone statistics", "files": {"clone.json": {"content": "'"$content"'"}}}' > post_clone.json curl -s -X PATCH \ --user "${{ github.actor }}:${{ secrets.SECRET_TOKEN }}" \ -H "Content-Type: application/json" \ @@ -71,7 +71,7 @@ jobs: ```markdown' >> CLONE.md echo "[![GitHub Clones]($shields$url&logo=github)]($repo)" >> CLONE.md echo ' - ``` + ```' **HTML** ```html' >> CLONE.md